mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Cosmetic changes
This commit is contained in:
parent
a678d737be
commit
9290713ad0
1 changed files with 8 additions and 7 deletions
|
@ -18,15 +18,16 @@ module Hamlit
|
||||||
while @lines[@current_lineno + 1]
|
while @lines[@current_lineno + 1]
|
||||||
@current_lineno += 1
|
@current_lineno += 1
|
||||||
|
|
||||||
if end_with_pipe?(current_line)
|
unless end_with_pipe?(current_line)
|
||||||
prefix = current_line[/\A */]
|
|
||||||
lines = scan_multilines
|
|
||||||
|
|
||||||
result << prefix + build_multiline(lines)
|
|
||||||
(lines.length - 1).times { result << '' }
|
|
||||||
else
|
|
||||||
result << current_line
|
result << current_line
|
||||||
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
prefix = current_line[/\A */]
|
||||||
|
lines = scan_multilines
|
||||||
|
|
||||||
|
result << prefix + build_multiline(lines)
|
||||||
|
(lines.length - 1).times { result << '' }
|
||||||
end
|
end
|
||||||
result.map { |line| "#{line}\n" }.join
|
result.map { |line| "#{line}\n" }.join
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue