Fixed insert newline when lines are empty

Previously 2 new lines were inserted when the lines were empty
Checkpoint prior to reverting