Method: IsoDoc::HtmlFunction::Html#html_cover

Defined in:
lib/isodoc/html_function/html.rb

#html_cover(docxml) ⇒ Object



188
189
190
191
192
193
# File 'lib/isodoc/html_function/html.rb', line 188

def html_cover(docxml)
  cover = File.read(@htmlcoverpage, encoding: "UTF-8")
  coverxml = to_xhtml_fragment(cover)
  d = docxml.at('//div[@class="title-section"]')
  d.children.first.add_previous_sibling coverxml.to_xml(encoding: "US-ASCII")
end