That's because you're using \r\n for new lines. Some editors recognize only \n for new lines, therefore it will show the \r as a square block. There's no real fix to this - it's just stupid differences between operating systems (Windows uses \r\n, Unix uses \n, and Mac uses \r...now we just need an OS that uses \n\r, j/k 😛 )
Diego