#3888: Template comments eats text
------------------------+---------------------------------------------------
Reporter: tonnzor | Owner: adrian
Status: reopened | Component: Template system
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Changes (by tonnzor <[EMAIL PROTECTED]>):
* status: closed => reopened
* resolution: invalid =>
Comment:
Yes, I see the difference. However, if it do not work, then it should do
not touch original content at all.
I.e this template:
{{{
Hello
{# this
comment
has
newlines #} World! {{ "some more text" }}
}}}
Should produce this output:
{{{
Hello
{# this
comment
has
newlines #} World! some more text
}}}
But not this one (actual result):
{{{
Hello
some more text
}}}
Things must work or do not work, not "work sometimes" or "do not work and
have some side effects".
Also I dont's see any reasons why {##} can't support newlines - if is much
more easier to use them instead of {% comment %}{% endcomment %}
--
Ticket URL: <http://code.djangoproject.com/ticket/3888#comment:4>
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
-~----------~----~----~----~------~----~------~--~---