Method: IsoDoc::WordFunction::Body#dt_parse

Defined in:
lib/isodoc/word_function/body.rb

#dt_parse(dt, term) ⇒ Object



91
92
93
94
95
96
97
98
99
# File 'lib/isodoc/word_function/body.rb', line 91

def dt_parse(dt, term)
  term.p **attr_code(WORD_DT_ATTRS) do |p|
    if dt.elements.empty?
      p << dt.text
    else
      dt.children.each { |n| parse(n, p) }
    end
  end
end