Wednesday, October 22, 2014

Re: Is there a way to supress blank lines in the HTML?


May i ask you why do you need that ?

If you need this for some performance reasons like html compression, you are doing it wrong.
Instead you could use server-side GZIP compression when serving html which will do the job much more efficiently.

If you are concerned about the structure of the document, the "beauty" of indents and spaces - i guess you should google for "html prettify for python".

Best regards,
Vladimir

On Thursday, October 23, 2014 2:24:16 AM UTC+3, Daniel Grace wrote:
Hi,
Is there a way to suppress blank lines in the HTML?
I tried using the spaceless tag but it is overkill for what I want.
I just want to suppress the blank lines from the HTML and not all space.

Any ideas?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec0ca154-f465-4970-b8c4-9b92140a07c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment