Method: IsoDoc::Function::Cleanup#figure_get_or_make_dl

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

#figure_get_or_make_dl(elem) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/isodoc/function/cleanup.rb', line 45

def figure_get_or_make_dl(elem)
  dl = elem.at(".//dl")
  if dl.nil?
    elem.add_child("<p><b>#{@i18n.key}</b></p><dl></dl>")
    dl = elem.at(".//dl")
  end
  dl
end