﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17719	Document that template syntax sequences cannot be used as string literals	development@…	nobody	"Django template parsing (Lexer) looks for the first occurrence of %} after a {% when determining what a block tag is.  This prevents the use of ""%}"" as a string literal.  So a template syntax error will be raised for the following valid expressions:
{{{
  {% include ""template.html"" tvar=""Some string literal with %} in it."" %}
  {% with tvar=""Some string literal with %} in it."" %}{% endwith %}
}}}

This is also true for variable tag parsing.  Example:
{{{
  {{ some.variable|default:""}}"" }}
}}}

If this is expected/intended behavior, it doesn't appear to be documented anywhere.

The actual fix doesn't look trivial, but shouldn't be too bad.  I could help with a fix if there's interest in that.
"	Cleanup/optimization	closed	Documentation	1.3	Normal	fixed			Accepted	1	0	0	0	0	0
