Good point, thanks very much, but I think I'll just live with the way
it currently works.

What I've done is to take a bit more care how and where I place
template tags, and this has improved things somewhat.

On Dec 4, 1:25 am, adelevie <[EMAIL PROTECTED]> wrote:
> You may also want to look at BeautifulSoup. It is an html parser
> writter for python. It has a method called soup.prettify() in  which
> "soup" is a string of html. prettify() outputs cleanly formatted html.
> Approximation:
> soup = "<html><body><h1>title</h1><p>hello world</p></body></html>"
> soup.pretiffy()>>> <html>
>
>             <body>
>                  <h1>title</h1>
>                  <p>hello world</p>
>             </body>
>        </html>
>
> I hope this helps.
>
> On Dec 3, 3:00 am, Tonne <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thank you for the detailed response, Malcolm. I wasn't aware of the
> > complexities of the issue and understand better now why it is the way
> > it is. It was something that was really bugging me, but I feel like I
> > can let it go now :)
>
> > I'm not skilled enough in Python to take a crack at solving the
> > problem myself. Although I'd prefer my HTML source output to look
> > good, I'll take readability of template code (and performance) over
> > rendered output prettiness.
>
> > Thanks again.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to