Sha256: 8d1b7202f1c3d12818e3f64acf91c46eb36c96ca329bcfb3e35d7eb39eac0681
Contents?: true
Size: 868 Bytes
Versions: 11
Compression:
Stored size: 868 Bytes
Contents
require "isodoc" require "fileutils" module IsoDoc module Generic module BaseConvert def cleanup(docxml) super term_cleanup(docxml) end def term_cleanup(docxml) docxml.xpath("//p[@class = 'Terms']").each do |d| h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]") h2.add_child(" ") h2.add_child(d.remove) end docxml end def make_body(xml, docxml) body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" } xml.body **body_attr do |body| make_body1(body, docxml) make_body2(body, docxml) make_body3(body, docxml) end end def info(isoxml, out) @meta.ext isoxml, out super end end end end
Version data entries
11 entries across 11 versions & 1 rubygems