class Haml::Parser

def handle_ruby_multiline(line)

def handle_ruby_multiline(line)
  line.text.rstrip!
  return line unless is_ruby_multiline?(line.text)
  begin
    # Use already fetched @next_line in the first loop. Otherwise, fetch next
    new_line = new_line.nil? ? @next_line : @template.shift
    break if new_line.eod?
    next if new_line.text.empty?
    line.text << " #{new_line.text.rstrip}"
  end while is_ruby_multiline?(new_line.text)
  next_line
  line
end