fixed extra line breaks in html output