lib/isodoc/m3d/m3wordrender.rb in metanorma-m3d-1.0.7 vs lib/isodoc/m3d/m3wordrender.rb in metanorma-m3d-1.0.8

- old
+ new

@@ -1,20 +1,17 @@ module IsoDoc module M3d # A {Converter} implementation that generates CSAND output, and a document # schema encapsulation of the document for validation class WordConvert < IsoDoc::WordConvert - def annex_name(annex, name, div) + def annex_name(annex, name, div) div.h1 **{ class: "Annex" } do |t| t << "#{get_anchors[annex['id']][:label]} " - t << "<b>#{name.text}</b>" + t.br + t.b do |b| + name&.children&.each { |c2| parse(c2, b) } + end end - end - - def annex_name_lbl(clause, num) - obl = l10n("(#{@inform_annex_lbl})") - obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative" - l10n("<b>#{@annex_lbl} #{num}</b> #{obl}") end def pre_parse(node, out) out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;") end