Sha256: 35161938b6115c3bbcdd1573e70e2971d75d830700b2c34aad10f34cf05ee525

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

module Boilerpipe::SAX::TagActions
  # Marks this tag a simple "inline" element, which generates whitespace, but no new block.
  class InlineWhitespace
    def start(handler, name, attrs)
      handler.append_space
      false
    end

    def end_tag(handler, name)
      handler.append_space
      false
    end

    def changes_tag_level?
      false
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.4.0 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/sax/tag_actions/inline_whitespace.rb