lib/isodoc/function/to_word_html.rb in isodoc-2.4.4 vs lib/isodoc/function/to_word_html.rb in isodoc-2.4.5
- old
+ new
@@ -67,25 +67,25 @@
make_body3(body, docxml)
end
end
def make_body1(body, _docxml)
- body.div **{ class: "title-section" } do |div1|
+ body.div class: "title-section" do |div1|
div1.p { |p| p << " " } # placeholder
end
section_break(body)
end
def make_body2(body, _docxml)
- body.div **{ class: "prefatory-section" } do |div2|
+ body.div class: "prefatory-section" do |div2|
div2.p { |p| p << " " } # placeholder
end
section_break(body)
end
def make_body3(body, docxml)
- body.div **{ class: "main-section" } do |div3|
+ body.div class: "main-section" do |div3|
boilerplate docxml, div3
preface_block docxml, div3
abstract docxml, div3
foreword docxml, div3
introduction docxml, div3
@@ -123,16 +123,17 @@
i = terms_defs isoxml, out, i
symbols_abbrevs isoxml, out, i
clause isoxml, out
annex isoxml, out
bibliography isoxml, out
+ colophon isoxml, out
end
def boilerplate(node, out)
return if @bare
boilerplate = node.at(ns("//boilerplate")) or return
- out.div **{ class: "authority" } do |s|
+ 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