optimize line breaks in html output