#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: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------+-------------------------------------
Comment (by Rob Hudson <[EMAIL PROTECTED]>):
I was about to code the patch to add spaces if none existed, but since
this wasn't there before, I decided not to.
Would it be worth considering, that if the numeric value is > 0, to add
spaces between tags if none existed prior? This would have the benefit
that all spaces are uniform. It should be as simple as changing the \s+
to a \s*? in the regex, but I'm not convinced this is the best way to go.
--
Ticket URL: <http://code.djangoproject.com/ticket/3532#comment:3>
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
-~----------~----~----~----~------~----~------~--~---