Fixed bug with leftover line handling
Merge pull request #652 from christav/fix-jenkins

Fixed bug with leftover line handling