Sha256: 318cd1059268ffc456aed2d9f3b97cc6d867c206012f4c2a9fb173824cee1bc4
Contents?: true
Size: 466 Bytes
Versions: 6
Compression:
Stored size: 466 Bytes
Contents
module Coradoc::Input::HTML module Converters class Tr < Base def to_coradoc(node, state = {}) content = treat_children_coradoc(node, state) header = table_header_row?(node) Coradoc::Element::Table::Row.new(content, header) end def table_header_row?(node) # node.element_children.all? {|child| child.name.to_sym == :th} node.previous_element.nil? end end register :tr, Tr.new end end
Version data entries
6 entries across 6 versions & 1 rubygems