Sha256: 8c52e6a25764d1a8efd8728c7970f2723b8dedb3297e4db169611e10048ddc58

Contents?: true

Size: 468 Bytes

Versions: 29

Compression:

Stored size: 468 Bytes

Contents

module Metanorma
  module IEEE
    class TermLookupCleanup < Metanorma::Standoc::TermLookupCleanup
      def remove_missing_ref_term(node, _target, type)
        type == "symbol" and return super
        node.at("../xrefrender")&.remove
        #node.replace("<preferred><expression><name>#{node.children.to_xml}"\
        #             "</name></expression></preferred>")
        node.replace("<refterm>#{node.children.to_xml}</refterm>")
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
metanorma-ieee-1.3.1 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.3.0 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.14 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.13 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.12 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.11 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.10 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.9 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.8 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.7 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.6 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.5 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.4 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.3 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.2 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.1 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.2.0 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.1.10 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.1.9 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.1.8 lib/metanorma/ieee/term_lookup_cleanup.rb