lib/isodoc/mpfd/base_convert.rb in metanorma-mpfd-0.3.10 vs lib/isodoc/mpfd/base_convert.rb in metanorma-mpfd-0.3.11
- old
+ new
@@ -202,10 +202,10 @@
def clause_parse_title(node, div, c1, out)
if node["inline-header"] == "true"
inline_header_title(out, node, c1)
else
attrs = { class: node["container"] ? "containerhdr" : nil }
- div.send "h#{anchor(node['id'], :level) || '1'}", **attr_code(attrs) do |h|
+ div.send "h#{anchor(node['id'], :level, :false) || '1'}", **attr_code(attrs) do |h|
lbl = anchor(node['id'], :label, false)
h << "#{lbl}. " if lbl && !@suppressheadingnumbers
c1&.children&.each { |c2| parse(c2, h) }
end
end