Method: IsoDoc::PresentationXMLConvert#fmt_caption2
- Defined in:
- lib/isodoc/presentation_function/autonum.rb
#fmt_caption2(label, elem, name, ids, delims) ⇒ Object
143 144 145 146 147 148 149 150 151 |
# File 'lib/isodoc/presentation_function/autonum.rb', line 143 def fmt_caption2(label, elem, name, ids, delims) if name && !name.children.empty? empty_xml?(label) or d = "<span class='fmt-caption-delim'>#{delims[:caption]}</span>" attr = " element='#{elem}' source='#{ids[:name]}'" "#{label}#{d}<semx #{attr}>#{to_xml(name.children)}</semx>" elsif label then label end end |