Method: IsoDoc::Function::Blocks#annotation_parse

Defined in:
lib/isodoc/function/blocks.rb

#annotation_parse(node, out) ⇒ Object



157
158
159
160
161
162
163
164
165
166
# File 'lib/isodoc/function/blocks.rb', line 157

def annotation_parse(node, out)
  @sourcecode = false
  @annotation = true
  node.at("./preceding-sibling::*[local-name() = 'annotation']") or
    out << "<br/>"
  callout = node.at(ns("//callout[@target='#{node['id']}']"))
  out << "<br/>&lt;#{callout.text}&gt; "
  out << node&.children&.text&.strip
  @annotation = false
end