#33329: Allow more whitespace control on template tags
-------------------------------------+-------------------------------------
     Reporter:  sur.la.route         |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Template system      |                  Version:  3.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  space control        |             Triage Stage:
  template                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Replying to [comment:2 sur.la.route]:
 > Does that remove space inside attributes as well? Not just in
 surrounding html?

 You can use `spaceless` around the `value`, e.g.
 {{{
 <input value="{% spaceless %}{% if a %}
          this
       {% else %}
           that
       {% endif %}{% endspaceless %}">
 }}}

 Please use one of
 [https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
 support channels] if you have further questions.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33329#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/078.12762a10b4a18c467da4542f799a7483%40djangoproject.com.

Reply via email to