class Haml::Filters::Preserve
def compile(node)
def compile(node) text = node.value[:text].rstrip + "\n" text = text.gsub("\n", '
') compile_text(text) end
def compile_text(text)
def compile_text(text) if ::Haml::Util.contains_interpolation?(text) [:dynamic, ::Haml::Util.unescape_interpolation(text)] else [:static, text] end end