module Hpricot::Node

def parse_text(text, tabs)

def parse_text(text, tabs)
  text.strip!
  if text.empty?
    String.new
  else
    lines = text.split("\n")
    lines.map do |line|
      line.strip!
      "#{tabulate(tabs)}#{'\\' if Haml::Engine::SPECIAL_CHARACTERS.include?(line[0])}#{line}\n"
    end.join
  end
end

def tabulate(tabs)

def tabulate(tabs)
  '  ' * tabs
end

def to_haml(tabs = 0)

at the given tabulation.
Returns the Haml representation of the given node,
def to_haml(tabs = 0)
  parse_text(self.to_s, tabs)
end