Logo Search packages:      
Sourcecode: ocrfeeder version File versions  Download package

def odf::odf2xhtml::ODF2XHTML::s_draw_image (   self,
  tag,
  attrs 
)

A <draw:image> becomes an <img/> element

Definition at line 556 of file odf2xhtml.py.

00556                                       :
        """ A <draw:image> becomes an <img/> element
        """
        parent = self.tagstack.stackparent()
        anchor_type = parent.get((TEXTNS,'anchor-type'))
        imghref = attrs[(XLINKNS,"href")]
        imghref = self.rewritelink(imghref)
        htmlattrs = {'alt':"", 'src':imghref }
        if anchor_type != "character":
            htmlattrs['style'] = "display: block;"
        self.emptytag('img', htmlattrs)

    def s_draw_page(self, tag, attrs):


Generated by  Doxygen 1.6.0   Back to index