Remove blank lines
Ensure that if a line is the last one left, it is displayed