Skip to content

Commit d8b6178

Browse files
Update lib/herb/engine.rb
Co-authored-by: Marco Roth <marco.roth@intergga.ch> Signed-off-by: Joel Hawksley <joelhawksley@github.com>
1 parent 8e5ee7b commit d8b6178

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/herb/engine.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ def add_expression_block_end(code, escaped: false)
304304
else
305305
";"
306306
end
307-
end
307+
@src << " " << code_stripped
308+
@src << "\n" if self.class.comment?(code_stripped)
309+
@src << (escaped ? "))" : ")")
310+
@src << (trailing_newline ? "\n" : ";")
308311

309312
@buffer_on_stack = false
310313
end

0 commit comments

Comments
 (0)