On Wed, Nov 25, 2009 at 21:42, ludicco <[email protected]> wrote:
> Anyone could let me know if this would be a good thing?
> Is there any down sides in compressing the HTML like this, if you
> don't need/want it to be human readable?
There is a reason :ugly is the only option for compressing HTML. There are a
lot of downsides if you decide to simply strip newlines. One example:
<p><em>This<em>
is my website</p>
Browsers render any consequential amout of whitespace as a single space, and
if you remove a newline here you will end up joining "This" and "is". On the
other hand, if you replace a newline with a space you haven't gained
anything on size.
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.