Sha256: c4cad6b752a8b0c6321c4dae7b9802a0606d7999086ba0ecb869212a45c11d25

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 Bytes

Contents

module Boilerpipe::SAX::TagActions
  # for inline elements, which triggers some LabelAction on the
  # generated TextBlock.
  class InlineTagLabel
    def initialize(label_action)
      @label_action = label_action
    end

    def start(handler, name, attrs)
      handler.append_space
      handler.add_label_action(@label_action)
      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_tag_label.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.4.0 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/sax/tag_actions/inline_tag_label.rb