#3532: Give the template tag "spaceless" an option wether to leave a single 
space
or none.
--------------------------------------+-------------------------------------
   Reporter:  [EMAIL PROTECTED]          |                Owner:  adrian        
 
     Status:  new                     |            Component:  Template system
    Version:  SVN                     |           Resolution:                 
   Keywords:  spaceless template tag  |                Stage:  Unreviewed     
  Has_patch:  0                       |           Needs_docs:  0              
Needs_tests:  0                       |   Needs_better_patch:  0              
--------------------------------------+-------------------------------------
Changes (by Rob Hudson <[EMAIL PROTECTED]>):

 * cc: [EMAIL PROTECTED] (added)
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I agree... when I first used this I expected no spaces (in other words:
 spaceless).  I too would like a "no I really mean spaceless" templatetag.
 
 Perhaps spaceless should be renamed to normalize or something?
 
 Or change the templatetag to accept an optional numeric value for the
 number of spaces to put back with the default being 1?  ie: {% spaceless 0
 %}{% endspaceless %}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3532#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to