On Thu, Nov 4, 2010 at 10:46 PM, Michael P. Soulier <msoul...@digitaltorque.ca> wrote: > Hi, > > I'm templating some javascript which is at times rather picky in parsing > depending on one's browser. It would be nice in some cases to suppress the > newline caused by the insertion of a template tag, like in jsp and erb. > Perhaps something like > > {% if foo %} newline present > {%- if foo %} newline suppression > > Likely someone has asked for this already so I'm curious about it.
Yes, someone has; although the proposal on the table doesn't involve adding magic syntax to the template tag itself, but for the parser to consider a tag on a line by itself as something that doesn't introduce a newline. http://code.djangoproject.com/ticket/2594 Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.