Sha256: 2f03a4da2a947501bd12c9f6d714f995f870012fa3cdb0bf6de23eae3f3cc74d

Contents?: true

Size: 420 Bytes

Versions: 16

Compression:

Stored size: 420 Bytes

Contents

module Metanorma
  module IEEE
    class TermLookupCleanup < Metanorma::Standoc::TermLookupCleanup
      def remove_missing_ref_term(node, _target)
        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

16 entries across 16 versions & 1 rubygems

Version Path
metanorma-ieee-1.0.14 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.13 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.12 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.11 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.10 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.9 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.8 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.7 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.6 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.5 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.4 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.3 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.2 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.1 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-1.0.0 lib/metanorma/ieee/term_lookup_cleanup.rb
metanorma-ieee-0.1.3 lib/metanorma/ieee/term_lookup_cleanup.rb