Method: IsoDoc::Function::ToWordHtml#boilerplate
- Defined in:
- lib/isodoc/function/to_word_html.rb
#boilerplate(node, out) ⇒ Object
162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/isodoc/function/to_word_html.rb', line 162 def boilerplate(node, out) @bare and return boilerplate = node.at(ns("//boilerplate")) or return out.div class: "authority" do |s| boilerplate.children.each do |n| if n.name == "title" s.h1 do |h| n.children.each { |nn| parse(nn, h) } end else parse(n, s) end end end end |