Sha256: 172c0f20045ec966c0e2542f72c836e101710b0eef93f88f9db716a0478387ef
Contents?: true
Size: 579 Bytes
Versions: 41
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
41 entries across 41 versions & 1 rubygems