lib/faml/line_parser.rb in faml-0.2.8 vs lib/faml/line_parser.rb in faml-0.2.9
- old
+ new
@@ -6,13 +6,13 @@
@filename = filename
@lines = template_str.each_line.map { |line| line.chomp.rstrip }
@lineno = 0
end
- def next_line
+ def next_line(in_filter: false)
line = move_next
- if is_multiline?(line)
+ if !in_filter && is_multiline?(line)
next_multiline(line)
else
line
end
end
@@ -59,9 +59,9 @@
else
move_back
break
end
end
- buf.join
+ buf.join("\n")
end
end
end