Re: [Django] #15798: "spaceless" filter does not not honor tag formatting

2011-04-21 Thread Django
#15798: "spaceless" filter does not not honor  tag formatting
-+-
   Reporter:  dfcode |  Owner:  nobody
   Type: | Status:  closed
  Cleanup/optimization   |  Component:  Template system
  Milestone: |   Severity:  Normal
Version:  1.3|   Keywords:  spaceless,html,pre
 Resolution:  wontfix|  Has patch:  0
   Triage Stage: |Needs tests:  0
  Unreviewed |  Easy pickings:  0
Needs documentation:  0  |
Patch needs improvement:  0  |
-+-
Changes (by aaugustin):

 * status:  new => closed
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * easy:   => 0
 * needs_docs:   => 0
 * resolution:   => wontfix


Comment:

 Currently the {% spaceless %} tag does what is documented: it removes all
 spaces.

 #8123 discusses customizing its behavior for certain tags (inline vs.
 block); it was rejected by two core developers. The bottom line is that if
 you do not want to remove all spaces, you just shouldn't use {% spaceless
 %}.

 In my opinion, the behavior is intentional, so I will close the ticket as
 wontfix.

 PS1 : your idea was briefly mentioned here:
 http://code.djangoproject.com/ticket/3532#comment:10 but not discussed
 further.

 PS2 : for the record, here is the history of the {% spaceless %} tag:
 - introduced with #1067, really spaceless
 - changed with #1227, collapses several whitespace characters to a space
 - changed back with #3532, really spaceless again after a discussion on
 the mailing-list: http://www.mail-archive.com/django-
 develop...@googlegroups.com/msg09235.html

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #15798: "spaceless" filter does not not honor tag formatting

2011-04-10 Thread Django
#15798: "spaceless" filter does not not honor  tag formatting
--+
 Reporter:  dfcode| Owner:  nobody
 Type:  Cleanup/optimization  |Status:  new
Milestone:| Component:  Template system
  Version:  1.3   |  Severity:  Normal
 Keywords:  spaceless,html,pre|  Triage Stage:  Unreviewed
Has patch:  0 |
--+
 I have a blog site where I occasionally wrap some HTML code between 
 tags to put it on display for my viewers.  I've noticed that when I apply
 the {% spaceless %} filter to my document, Django plows straight through
 the embedded HTML code with no regard for the "pre-formatted" declaration.
 An example might be:
 {{{
 
   
 
 
   This is an example of some code I want to display in indented
 form.
   
 
 
   
 
 }}}
 results in:
 {{{
 This is an example of some code I want to
 display in indented form.
 }}}
 and one line of code is displayed on my webpage.

 Perhaps this is intentional.  If not, I think the 'spaceless' filter
 should be programmed to recognize  tags and leave the content within
 them alone.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.