Method: IsoDoc::PresentationXMLConvert#svg_wrap
- Defined in:
- lib/isodoc/presentation_function/image.rb
#svg_wrap(elem) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/isodoc/presentation_function/image.rb', line 15 def svg_wrap(elem) return if elem.parent.name == "image" elem.wrap("<image src='' mimetype='image/svg+xml' height='auto' " \ "width='auto'></image>") end |