Fixed render crash when using inline include with a string template
Fixes #639
@AnrDaemon have a look please?
Had one. There's at least two issues with this PR.
- It evaluates incorrectly (see modified unit test in #652 ).
- It does not cover the regression reported (see specific regression test in the same PR).
so... is the fuss about the newline or about the fatal error?
Now it is about different rendering result before and after the fix.
There's no more crashes as far as I can see.
OK, but In my experience there was always a fatal error when rendering a string template inline. I see the extra newline in the output, but wouldn't that be a separate, somewhat less important issue? Also: why would one render a string template as inline?
string: source was used to easily demonstrate the issue using as few extra files as possible.
In real world, it was indeed an external file, but I made sure the results are exactly same.
To clarify: I've never had crashes with string:… inline alone.