You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding XML comment using <!-- comment --> outside the root node seems to cause an unnecessary and confusing exception in py:else handling.
d="""
<!-- stuff -->
<a>
<py:switch test="val">
<py:case value="1">2</py:case>
<py:else>1</py:else>
</py:switch>
</a>
"""
>>> dd=kajiki.XMLTemplate(d)
...
kajiki.xml_template.XMLTemplateCompileError: [<string>:6] py:else directive must be inside a py:switch or directly after py:if without text or spaces in between
Adding XML comment using
<!-- comment -->
outside the root node seems to cause an unnecessary and confusing exception in py:else handling.Without py:else this works fine:
With py:else and without XML comment also works fine
The text was updated successfully, but these errors were encountered: