ODT Input: Do not force the background color to white. Fixes #9118 (White background color from OpenOffice to Mobi added)

This commit is contained in:
Kovid Goyal 2011-02-24 09:21:51 -07:00
parent 2101dcf2b5
commit 019c17973e

View File

@ -659,7 +659,8 @@ class ODF2XHTML(handler.ContentHandler):
self.opentag('style', {'type':"text/css"}, True)
self.writeout('/*<![CDATA[*/\n')
self.writeout('\nimg { width: 100%; height: 100%; }\n')
self.writeout('* { padding: 0; margin: 0; background-color:white; }\n')
# background-color: white removed by Kovid for #9118
self.writeout('* { padding: 0; margin: 0; }\n')
self.writeout('body { margin: 0 1em; }\n')
self.writeout('ol, ul { padding-left: 2em; }\n')
self.generate_stylesheet()