#9198: templatetag include adds new line ---------------------------------------+--------------------------------- Reporter: versae | Owner: nobody Type: New feature | Status: new Milestone: | Component: Template system Version: 1.0 | Severity: Normal Resolution: | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 ---------------------------------------+---------------------------------
Comment (by versae): Replying to [comment:4 anonymous]: > versae's workaround doesnt seem to fix anything. The new lines seem to survive the trimming (!?). You have to use the filter together to [http://djangosnippets.org/snippets/835/ withtag templatetag]. By example: {{{ {% withtag include temaplate1.html as my_template %} {% my_template|trim %} {% endwithtab %} }}} But the code of {{{withtag}}} templatetag is old, I don't know if it's working yet. -- Ticket URL: <https://code.djangoproject.com/ticket/9198#comment:5> 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 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.