When I 'view source' using different browsers my web pages seems to always have lots of whitespace and are badly formatted. I am developing a Java web application using JSPs.
How can I ensure that when I 'view source' I see nicely formatted HTML?
Edit:
When I say formatted I mean typically:
I get this kind of thing:
<div>
<p>some text</p>
</div>
when I want:
<div>
<p>some text</p>
</div>
In my JSPs (which use includes) everything is formatted nicely.