Method: IsoDoc::Function::Cleanup#figure_get_or_make_dl

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

#figure_get_or_make_dl(elem) ⇒ Object



88
89
90
91
92
93
94
95
# File 'lib/isodoc/function/cleanup.rb', line 88

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