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
Can confirm that _%> whitespace slurping works strange indeed:
1
2
<%# comment _%>
2
1
produces
1
2
2
1
As a not-so-pretty-but-functional workaround you can use both-ways slurped JavaScript comment (or any valid JavaScript expression as long as it does not contain %>) in scriptlet tag:
As a side note from my experience: to get "well-indented" output of something 'templated' it is usually better to employ some extra "beautifier" in the build pipeline. Nice source of something with e.g. nested includes are seldom solvable otherwise… Plus, you remove possibility of human error and get uniform rules.
I'm generating an XML file (using
ejs-webpack-builder
):And get result:
I'd expect:
I tried using
_%>
, but it adds offset from the line with a comment to the next line:The text was updated successfully, but these errors were encountered: