1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Cosmetic changes

This commit is contained in:
Takashi Kokubun 2015-03-16 14:18:24 +09:00
parent a678d737be
commit 9290713ad0

View file

@ -18,15 +18,16 @@ module Hamlit
while @lines[@current_lineno + 1]
@current_lineno += 1
if end_with_pipe?(current_line)
prefix = current_line[/\A */]
lines = scan_multilines
result << prefix + build_multiline(lines)
(lines.length - 1).times { result << '' }
else
unless end_with_pipe?(current_line)
result << current_line
next
end
prefix = current_line[/\A */]
lines = scan_multilines
result << prefix + build_multiline(lines)
(lines.length - 1).times { result << '' }
end
result.map { |line| "#{line}\n" }.join
end