Method: IsoDoc::Function::Blocks#annotation_parse
- Defined in:
- lib/isodoc/function/blocks.rb
#annotation_parse(node, out) ⇒ Object
146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/isodoc/function/blocks.rb', line 146 def annotation_parse(node, out) @sourcecode = false @annotation = true node.at("./preceding-sibling::*[local-name() = 'annotation']") or out << "<br/>" out << "<br/>" #out.span **{ class: "zzMoveToFollowing" } do |s| out << "<#{node.at(ns("//callout[@target='#{node['id']}']")).text}> " #end #node.children.each { |n| parse(n, out) } out << node&.children&.text&.strip @annotation = false end |