removing newlines before <html>