Sha256: 9b4978fa8c980c4d80cf6a79b718710e9aecf58b4e70d28a94f7f0278f78e9a0
Contents?: true
Size: 579 Bytes
Versions: 35
Compression:
Stored size: 579 Bytes
Contents
require "isodoc" module IsoDoc module Ietf class Xref < IsoDoc::Xref def termnote_anchor_names(docxml) docxml.xpath(ns("//term[descendant::termnote]")).each do |t| c = IsoDoc::XrefGen::Counter.new notes = t.xpath(ns(".//termnote")) notes.each do |n| next if n["id"].nil? || n["id"].empty? idx = notes.size == 1 ? "" : " #{c.increment(n).print}" @anchors[n["id"]] = anchor_struct(idx, n, @labels["note_xref"], "note", false) end end end end end end
Version data entries
35 entries across 34 versions & 2 rubygems