Method: IsoDoc::WordFunction::Body#termnote_parse

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

#termnote_parse(node, out) ⇒ Object



170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/isodoc/word_function/body.rb', line 170

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