Sha256: 4ed63ca07e2ecb6229d65435a2bb35dc3a1cb655230976422845632ea9d2316f

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

module BootstrapEmail
  module Converter
    class BeautifyHTML < Base
      def self.replace(html)
        # Pretty print format the HTML string and add a trailing newline
        html.replace(HtmlBeautifier.beautify(html) + "\n")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-email-1.1.4 lib/bootstrap-email/converters/beautify_html.rb
bootstrap-email-1.1.3 lib/bootstrap-email/converters/beautify_html.rb
bootstrap-email-1.1.2 lib/bootstrap-email/converters/beautify_html.rb
bootstrap-email-1.1.1 lib/bootstrap-email/converters/beautify_html.rb
bootstrap-email-1.1.0 lib/bootstrap-email/converters/beautify_html.rb