Method: IsoDoc::HtmlFunction::Html#term_header
- Defined in:
- lib/isodoc/html_function/html.rb
#term_header(docxml) ⇒ Object
78 79 80 81 82 83 84 85 |
# File 'lib/isodoc/html_function/html.rb', line 78 def term_header(docxml) %w(h1 h2 h3 h4 h5 h6 h7 h8).each do |h| docxml.xpath("//p[@class = 'TermNum'][../#{h}]").each do |p| p.name = "h#{h[1].to_i + 1}" end end docxml end |