Fix bug around empty lines/comments not getting newlines placed after them