lib/isodoc/presentation_function/section.rb in isodoc-2.1.2.1 vs lib/isodoc/presentation_function/section.rb in isodoc-2.1.3

- old
+ new

@@ -175,10 +175,10 @@ def clausetitle(docxml); end def toc(docxml) docxml.xpath(ns("//toc//xref[text()]")).each do |x| - lbl = @xrefs.get[x["target"]][:label] or next + lbl = @xrefs.anchor(x["target"], :label) or next x.children.first.previous = "#{lbl}<tab/>" end end end end