Class: Coradoc::Input::Html::Converters::Th

Inherits:
Td
  • Object
show all
Defined in:
lib/coradoc/html/input/converters/th.rb

Instance Method Summary collapse

Methods inherited from Td

#extract_alignment, #extract_text_from_content, #to_coradoc

Methods inherited from Base

#convert, #escape_text, #extract_leading_trailing_whitespace, #extract_title, #node_has_ancestor?, #textnode_after_start_with?, #textnode_before_end_with?, #treat, #treat_children, #treat_children_coradoc, #treat_coradoc, #unconstrained_after?, #unconstrained_before?

Instance Method Details

#cellstyle(node) ⇒ Object



8
9
10
11
12
13
# File 'lib/coradoc/html/input/converters/th.rb', line 8

def cellstyle(node)
  # this is the header row
  return '' if node.parent.previous_element.nil?

  'h'
end