We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e848f00 commit 2dd7e3bCopy full SHA for 2dd7e3b
mustang/TemplateParser.ooc
@@ -115,6 +115,10 @@ TemplateParser: class {
115
// End of tag block
116
if(tag first() == '/') {
117
endBlock()
118
+ if(templateText charAt(index) == '\n') {
119
+ // Skip any newline after the ending block tag
120
+ index += 1
121
+ }
122
return true
123
}
124
@@ -124,8 +128,16 @@ TemplateParser: class {
128
node := p parse(tag)
125
129
if(node) {
126
130
appendNode(node)
127
- if(p isBlock()) startBlock()
131
132
+
133
+ if(p isBlock()) {
134
+ startBlock()
135
136
+ // Skip any newline that comes after a block start tag
137
138
139
140
141
142
143
0 commit comments