lib/isodoc/gb/gbhtmlrender.rb in metanorma-gb-1.0.6 vs lib/isodoc/gb/gbhtmlrender.rb in metanorma-gb-1.0.7

- old
+ new

@@ -134,11 +134,10 @@ def populate_template(docxml, format) meta = @meta.get.merge(@labels) logo = @common.format_logo(meta[:gbprefix], meta[:gbscope], format) logofile = @meta.standard_logo(meta[:gbprefix]) - @files_to_delete << logofile + ".gif" unless logofile.nil? docxml = termref_resolve(docxml) meta[:standard_agency_formatted] = @common.format_agency(meta[:standard_agency], format) meta[:standard_logo] = logo template = Liquid::Template.parse(docxml) @@ -181,10 +180,12 @@ end def annex_name(annex, name, div) div.h1 **{ class: "Annex" } do |t| t << "#{get_anchors[annex['id']][:label]}<br/><br/>" - t << name.text + t.b do |b| + name&.children&.each { |c2| parse(c2, b) } + end end end def term_defs_boilerplate(div, source, term, preface) unless preface