Method: IsoDoc::WordFunction::Body#termnote_parse

Defined in:
lib/isodoc/word_function/body.rb

#termnote_parse(node, out) ⇒ Object



158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/isodoc/word_function/body.rb', line 158

def termnote_parse(node, out)
  name = node&.at(ns("./name"))&.remove
  out.div **note_attrs(node) do |div|
    div.p **{ class: "Note" } do |p|
      if name
        name.children.each { |n| parse(n, p) }
        p << l10n(": ")
      end
      para_then_remainder(node.first_element_child, node, p, div)
    end
  end
end