Method: IsoDoc::HtmlFunction::Html#html_intro

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

#html_intro(docxml) ⇒ Object



195
196
197
198
199
200
# File 'lib/isodoc/html_function/html.rb', line 195

def html_intro(docxml)
  intro = File.read(@htmlintropage, encoding: "UTF-8")
  introxml = to_xhtml_fragment(intro)
  d = docxml.at('//div[@class="prefatory-section"]')
  d.children.first.add_previous_sibling introxml.to_xml(encoding: "US-ASCII")
end