Parse newlines for better pretty printing