Class: Metanorma::IEEE::TermLookupCleanup
- Inherits:
-
Standoc::TermLookupCleanup
- Object
- Standoc::TermLookupCleanup
- Metanorma::IEEE::TermLookupCleanup
- Defined in:
- lib/metanorma/ieee/term_lookup_cleanup.rb
Instance Method Summary collapse
Instance Method Details
#remove_missing_ref_term(node, _target, type) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/metanorma/ieee/term_lookup_cleanup.rb', line 4 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 |