MOBI Input: Do not speciy text-align for every paragraph. Fixes text-align inheritance issues for newer MOBIs with nested divs. Fixes #9098 (Problem with conversion of align="center")

This commit is contained in:
Kovid Goyal 2011-02-23 10:27:16 -07:00
parent 7839e164c4
commit 418d10eace

View File

@ -242,9 +242,11 @@ class MobiReader(object):
self.debug = debug self.debug = debug
self.embedded_mi = None self.embedded_mi = None
self.base_css_rules = textwrap.dedent(''' self.base_css_rules = textwrap.dedent('''
blockquote { margin: 0em 0em 0em 2em; text-align: justify } body { text-align: justify }
p { margin: 0em; text-align: justify; text-indent: 1.5em } blockquote { margin: 0em 0em 0em 2em; }
p { margin: 0em; text-indent: 1.5em }
.bold { font-weight: bold } .bold { font-weight: bold }