Skip to content

Commit e28e779

Browse files
authored
remove .strip on text (#15)
1 parent 346ab5e commit e28e779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_ast_gen/erb_to_ruby_transformer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def visit(node)
4747
return "" if text.strip.empty?
4848
if @in_control_block
4949
# In control blocks, we need to escape newlines and maintain indentation
50-
escaped_text = text.strip.gsub("\n", "\\n")
50+
escaped_text = text.gsub("\n", "\\n")
5151
@control_block_content << "#{escaped_text}"
5252
"" # Return empty string as we're collecting content
5353
else

0 commit comments

Comments
 (0)