Method: IsoDoc::PresentationXMLConvert#source1

Defined in:
lib/isodoc/presentation_function/block.rb

#source1(elem) ⇒ Object



217
218
219
220
221
222
# File 'lib/isodoc/presentation_function/block.rb', line 217

def source1(elem)
  while elem&.next_element&.name == "source"
    elem << "; #{to_xml(elem.next_element.remove.children)}"
  end
  elem.children = l10n("[#{@i18n.source}: #{to_xml(elem.children).strip}]")
end