Method: IsoDoc::Function::Inline#concept_parse
- Defined in:
- lib/isodoc/function/inline.rb
#concept_parse(node, out) ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/isodoc/function/inline.rb', line 101 def concept_parse(node, out) content = node.first_element_child.children.select { |c| c.name != "locality" }. select { |c| !c.text? || /\S/.match(c) } if content.empty? out << "[Term defined in " parse(node.first_element_child, out) out << "]" else content.each { |n| parse(n, out) } end end |