#2594: Template system should handle whitespace better
-------------------------------------+-------------------------------------
     Reporter:  Gary Wilson          |                    Owner:  jshedd
  <gary.wilson@…>                    |
         Type:  Bug                  |                   Status:  closed
    Component:  Template system      |                  Version:  master
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by amfarrell):

 To achieve this from jinja2, pass both trim_blocks=True and
 lstrip_blocks=True when you instantiate either your Environment or
 Template.

 see: http://jinja.pocoo.org/docs/dev/templates/#whitespace-control

--
Ticket URL: <https://code.djangoproject.com/ticket/2594#comment:60>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/093.ccbbaab90ea14bc738198e040e0a85b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to