Method: IsoDoc::PresentationXMLConvert#example1

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

#example1(elem) ⇒ Object



49
50
51
52
53
54
55
56
# File 'lib/isodoc/presentation_function/block.rb', line 49

def example1(elem)
  n = @xrefs.get[elem["id"]]
  lbl = if n.nil? || n[:label].nil? || n[:label].empty?
          @i18n.example
        else l10n("#{@i18n.example} #{n[:label]}")
        end
  prefix_name(elem, block_delim, lbl, "name")
end