Sha256: 3607d54535d827aa0af61f027709cc1aa8643cc3cc3022c2a022f7f5ec7eccdb

Contents?: true

Size: 294 Bytes

Versions: 10

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module BootstrapEmail
  module Converter
    class Spacer < Base
      def build
        each_node('*[class*=s-]') do |node|
          node.replace(template('table', classes: "#{node['class']} w-full", contents: '&nbsp;'))
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap-email-1.5.1 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.5.0 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.4.1 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.4.0 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.3.1 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.3.0 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.2.0 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.1.7 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.1.6 lib/bootstrap-email/converters/spacer.rb
bootstrap-email-1.1.5 lib/bootstrap-email/converters/spacer.rb