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
> 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
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
>> 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
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 %
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.
--~--~-~--~~~---~-
6 matches
Mail list logo