in HTML which is then styled
"""
+ self.frame_stack.append([])
anchor_type = attrs.get((TEXTNS,'anchor-type'),'notfound')
htmltag = 'div'
name = "G-" + attrs.get((DRAWNS,'style-name'), "")
@@ -729,6 +731,7 @@ class ODF2XHTML(handler.ContentHandler):
""" End the
"""
self.closetag('div')
+ self.frame_stack.pop()
def s_draw_fill_image(self, tag, attrs):
name = attrs.get((DRAWNS,'name'), "NoName")
@@ -745,6 +748,10 @@ class ODF2XHTML(handler.ContentHandler):
def s_draw_image(self, tag, attrs):
""" A becomes an
element
"""
+ if self.frame_stack:
+ if self.frame_stack[-1]:
+ return
+ self.frame_stack[-1].append('img')
parent = self.tagstack.stackparent()
anchor_type = parent.get((TEXTNS,'anchor-type'))
imghref = attrs[(XLINKNS,"href")]