Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Russell Keith-Magee
On 9/19/07, Frank Peterson <[EMAIL PROTECTED]> wrote: > > TRIM would delete any whitespace from the string (tabs, newlines, > spaces, ...). SPACELESS comes close as it will convert all the > whitespace into just 1 space. This behaviour has changed in the SVN version of Django. Now spaceless will

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Tim Chase
> TRIM would delete any whitespace from the string (tabs, newlines, > spaces, ...). SPACELESS comes close as it will convert all the > whitespace into just 1 space. Should TRIM delete *all* whitespace, or just leading/trailing whitespace? Trim functions usually just remove leading/trailing whi

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Frank Peterson
TRIM would delete any whitespace from the string (tabs, newlines, spaces, ...). SPACELESS comes close as it will convert all the whitespace into just 1 space. I'm stuck on 0.91 at work and I dont think they plan on upgrading anytime soon (its beyond my control) I'm not sure SPACELESS doesnt work

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Tim Chase
>> I looked over the docs >> http://www.djangoproject.com/documentation/0_91/templates/ >> >> but the closest thing was SPACELESS > > - What does a TRIM filter do? Perhaps it change the colour of the trim > on your website? I suspect what some languages call Trim is the Python function/method "s

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Russell Keith-Magee
On 9/19/07, Frank Peterson <[EMAIL PROTECTED]> wrote: > > I looked over the docs > http://www.djangoproject.com/documentation/0_91/templates/ > > but the closest thing was SPACELESS > > I tried to use it like this: > {% block data %}{% spaceless %}{{ story.tease }}{% endspaceless %}{% > endblock %

Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Frank Peterson
I looked over the docs http://www.djangoproject.com/documentation/0_91/templates/ but the closest thing was SPACELESS I tried to use it like this: {% block data %}{% spaceless %}{{ story.tease }}{% endspaceless %}{% endblock %} But it didnt work. --~--~-~--~~~---~-