We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 346ab5e commit e28e779Copy full SHA for e28e779
lib/ruby_ast_gen/erb_to_ruby_transformer.rb
@@ -47,7 +47,7 @@ def visit(node)
47
return "" if text.strip.empty?
48
if @in_control_block
49
# In control blocks, we need to escape newlines and maintain indentation
50
- escaped_text = text.strip.gsub("\n", "\\n")
+ escaped_text = text.gsub("\n", "\\n")
51
@control_block_content << "#{escaped_text}"
52
"" # Return empty string as we're collecting content
53
else
0 commit comments