| Module | Haml::HTML:: |
| In: |
lib/haml/html.rb
|
# File lib/haml/html.rb, line 56
56: def parse_text(text, tabs)
57: text.strip!
58: if text.empty?
59: String.new
60: else
61: lines = text.split("\n")
62:
63: lines.map do |line|
64: line.strip!
65: "#{tabulate(tabs)}#{'\\' if Haml::Engine::SPECIAL_CHARACTERS.include?(line[0])}#{line}\n"
66: end.join
67: end
68: end