lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.0.5 vs lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.0.10

- old
+ new

@@ -27,11 +27,11 @@ def default_file_locations(_options) { htmlstylesheet: html_doc_path("htmlstyle.scss"), htmlcoverpage: html_doc_path("html_rsd_titlepage.html"), htmlintropage: html_doc_path("html_rsd_intro.html"), - scripts: html_doc_path("scripts.html"), + scripts_pdf: html_doc_path("scripts.pdf.html"), } end def metadata_init(lang, script, labels) @meta = Metadata.new(lang, script, labels) @@ -350,10 +350,10 @@ inline_header_title(out, node, c1) else attrs = { class: node["container"] ? "containerhdr" : nil } div.send "h#{get_anchors[node['id']][:level]}", **attr_code(attrs) do |h| lbl = get_anchors[node['id']][:label] - h << "#{lbl}. " if lbl + h << "#{lbl}. " if lbl && !@suppressheadingnumbers c1&.children&.each { |c2| parse(c2, h) } end end end