module HtmlToHaml::HamlWhitespaceCleaner

Private Instance Methods

remove_haml_whitespace(haml:) click to toggle source
# File lib/html_to_haml/helpers/haml_whitespace_cleaner.rb, line 5
def remove_haml_whitespace(haml:)
  haml.lstrip.gsub(/\n\s*\n/, "\n")
end