Fix #1543 (Problem converting ODT to LRF)

This commit is contained in:
Kovid Goyal 2009-01-03 19:20:08 -08:00
parent 1ef8964487
commit bca2a86168

View File

@ -766,6 +766,8 @@ class ODF2XHTML(handler.ContentHandler):
""" Copy all attributes to a struct. """ Copy all attributes to a struct.
We will later convert them to CSS2 We will later convert them to CSS2
""" """
if self.currentstyle is None:
return
for key,attr in attrs.items(): for key,attr in attrs.items():
self.styledict[self.currentstyle][key] = attr self.styledict[self.currentstyle][key] = attr