First line comment crashes erlydtl #31

jeanparpaillon opened this Issue Jun 14, 2012 · 2 comments


None yet

3 participants

Given the following template:
<!-- comment -->

Then this one:
<!-- other comment -->
{% extend "path/to/first/template.html" %}

Compilation of second template fails with:
=ERROR REPORT==== 14-Jun-2012::13:25:59 ===

If I remove the comment in 2nd template, it compiles fine. Comment in the first template cause no problem. Using DTL style comment for 2nd template also leads to crash.


I found that it does not have to be a comment above the extend. I left an empty line where Jean has the comment and I got the same error.

kaos commented Nov 28, 2013

I can confirm that a leading blank line before the extends tag results in a compiler crash.

It's on my todo list..

@kaos kaos was assigned Nov 28, 2013
@kaos kaos added a commit that referenced this issue Nov 28, 2013
@kaos kaos Add failing test for issue #31. 98f89cb
@kaos kaos closed this in e976f07 Nov 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment