mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix right-to-left alignment not working for footnotes. Fixes #1617254 [Left aligned footnotes appear right aligned](https://bugs.launchpad.net/calibre/+bug/1617254)
This commit is contained in:
parent
70f7e0438b
commit
9d49446236
@ -388,7 +388,8 @@ class ParagraphStyle(object):
|
||||
val = '%.3gpt' % val
|
||||
c[x.replace('_', '-')] = val
|
||||
ta = self.text_align
|
||||
if self.bidi:
|
||||
if ta is not inherit:
|
||||
if self.bidi is True:
|
||||
ta = {'left':'right', 'right':'left'}.get(ta, ta)
|
||||
c['text-align'] = ta
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user