Fixing echo lines that add a newline before a comment