lib/isodoc/iho/xref.rb in metanorma-iho-1.0.5 vs lib/isodoc/iho/xref.rb in metanorma-iho-1.0.6
- old
+ new
@@ -92,11 +92,11 @@
lbl = annexlbl(clause.at("./ancestor::xmlns:annex/@obligation")
.text == "informative")
@anchors[clause["id"]] =
{ label: num, xref: l10n("#{lbl} #{num}"),
level: level, type: "clause" }
- i = Counter.new(0, prefix: "#{num}.")
+ i = Counter.new(0, prefix: num)
clause.xpath(ns("./clause | ./references | ./terms | ./definitions"))
.each do |c|
annex_names1(c, i.increment(c).print, level + 1)
end
end
@@ -115,10 +115,10 @@
def section_names1(clause, num, level)
@anchors[clause["id"]] =
{ label: num, level: level,
xref: l10n("#{@labels['subclause']} #{num}"),
type: "clause", elem: @labels["subclause"] }
- i = Counter.new(0, prefix: "#{num}.")
+ i = Counter.new(0, prefix: num)
clause.xpath(ns(SUBCLAUSES)).each do |c|
section_names1(c, i.increment(c).print, level + 1)
end
end