1
0
Fork 0
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:
Nathan Weizenbaum 2008-05-29 00:23:35 -07:00
parent 20bf0b558f
commit 59c438f623

View file

@ -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
resolve_newlines
newline
next
end
old_line = next_line
resolve_newlines
newline
while line = next_line
process_indent(old_line) unless old_line.text.empty?
if flat?