lib/isodoc/iho/xref.rb in metanorma-iho-0.2.3 vs lib/isodoc/iho/xref.rb in metanorma-iho-0.2.4

- old
+ new

@@ -13,10 +13,10 @@ appendix_names(clause, num) lbl = clause["obligation"] == "informative" ? @labels["appendix"] : @labels["annex"] @anchors[clause["id"]] = { label: annex_name_lbl(clause, num), type: "clause", - xref: "#{lbl} #{num}", level: 1 } + xref: "#{lbl} #{num}", level: 1, value: lbl } if a = single_annex_special_section(clause) annex_names1(a, "#{num}", 1) else clause.xpath(ns("./clause | ./references | ./terms | ./definitions")). each_with_index do |c, i|