Adding empty line ignore

Found that empty lines were not handled correctly.