removing unneeded line breaks