lib/isodoc/wordconvert/wordconvertmodule.rb in isodoc-0.7.0 vs lib/isodoc/wordconvert/wordconvertmodule.rb in isodoc-0.7.1
- old
+ new
@@ -1,6 +1,15 @@
-def make_body2(body, docxml)
+module IsoDoc
+ class WordConvert < Common
+ def make_body1(body, _docxml)
+ body.div **{ class: "WordSection1" } do |div1|
+ div1.p { |p| p << " " } # placeholder
+ end
+ section_break(body)
+ end
+
+ def make_body2(body, docxml)
body.div **{ class: "WordSection2" } do |div2|
info docxml, div2
foreword docxml, div2
introduction docxml, div2
div2.p { |p| p << " " } # placeholder
@@ -133,7 +142,9 @@
dd = tr.add_child("<td valign='top'></td>").first
fnref.parent = dt
aside.xpath(".//p").each do |a|
a.delete("class")
a.parent = dd
+ end
+end
end
end