working on longest-line modification to print arbitrarily long lengths of lines
checking if the last real character is a new line