Method: IsoDoc::PresentationXMLConvert#passthrough1

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

#passthrough1(elem, formats) ⇒ Object



191
192
193
194
195
196
197
# File 'lib/isodoc/presentation_function/inline.rb', line 191

def passthrough1(elem, formats)
  (elem["formats"] && !elem["formats"].empty?) or elem["formats"] = "all"
  f = elem["formats"].split(",")
  (f - formats).size == f.size or f = "all"
  f == ["all"] and f = formats.dup
  elem["formats"] = " #{f.join(' ')} "
end