I have add new line in methods that render code in the head and for body

I have add a new line before any html-code that generated in head, after &lt;body> tag and befor &lt;/body> tag. Without new line the code is ugly and attached to the end of other tags like that:
&lt;/script>&lt;script src="...">&lt;/script>
Now it looks like:
&lt;/script>
&lt;script src="...">&lt;/script>