Method: IsoDoc::PresentationXMLConvert#fmt_caption

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

#fmt_caption(label, elem, name, ids, delims) ⇒ Object

Remove “.blank?” tests if want empty delim placeholders for manipulation



128
129
130
131
132
133
134
135
# File 'lib/isodoc/presentation_function/autonum.rb', line 128

def fmt_caption(label, elem, name, ids, delims)
  label = fmt_caption_label_wrap(label)
  c = fmt_caption2(label, elem, name, ids, delims)
  empty_xml?(c) and return
  !delims[:label].blank? and
    f = "<span class='fmt-label-delim'>#{delims[:label]}</span>"
  "<fmt-#{elem}>#{c}#{f}</fmt-#{elem}>"
end