On Feb 25, 12:04 pm, Florian Apolloner <f.apollo...@gmail.com> wrote: > Hi, > > On Saturday, February 25, 2012 10:04:21 AM UTC+1, Anssi Kääriäinen wrote: > > > In most situations white space matters: > > {{ user.lastname }} {{ user.firstname }} > > Right, but > """ > {{ user.lastname }} > {{ user.firstname }} > """ > would have produced exactly the same output in HTML, hence my statement > that you usually don't have to care about it that much. Eg, you need to > make sure that there is whitespace but it doesn't matter how much since > it's collapsed anyways (and outside of tags it doesn't matter at all…)
I was just illuminating why putting {% stripwhitespace on %} in the beginning of the template might not be that great an idea. Even with the line change between the first and lastname they would be concatenated if all whitespace is stripped. I think we agree on this issue. Maybe I should have quoted the original poster of the idea instead... - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.