Sha256: 1244012154621fbccc9c672fb5e65f341a599842993c1df11a7506cb8ed1d913

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

module Coradoc::Input::HTML
  module Converters
    class Th < Td
      def cellstyle(node)
        # this is the header row
        return "" if node.parent.previous_element.nil?

        "h"
      end
    end

    register :th, Th.new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coradoc-1.1.6 lib/coradoc/input/html/converters/th.rb
coradoc-1.1.5 lib/coradoc/input/html/converters/th.rb
coradoc-1.1.4 lib/coradoc/input/html/converters/th.rb
coradoc-1.1.3 lib/coradoc/input/html/converters/th.rb
coradoc-1.1.2 lib/coradoc/input/html/converters/th.rb
coradoc-1.1.1 lib/coradoc/input/html/converters/th.rb