mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
More parser-style-induced cleaning up.
This commit is contained in:
parent
20bf0b558f
commit
59c438f623
1 changed files with 4 additions and 8 deletions
|
@ -112,15 +112,11 @@ END
|
|||
Line = Struct.new(:text, :unstripped, :full, :index, :spaces, :tabs)
|
||||
|
||||
def precompile
|
||||
old_line = Line.new
|
||||
while line = next_line
|
||||
if old_line.text.nil?
|
||||
old_line = line
|
||||
old_line = next_line
|
||||
resolve_newlines
|
||||
newline
|
||||
next
|
||||
end
|
||||
|
||||
while line = next_line
|
||||
process_indent(old_line) unless old_line.text.empty?
|
||||
|
||||
if flat?
|
||||
|
|
Loading…
Add table
Reference in a new issue