strip unneeded newlines
Fix rendering of xhtml pages