From 66aae13cd77c767954cfef8df0a4214a2c577170 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Aug 2015 09:03:29 +0530 Subject: [PATCH] DOCX Input: Fix a regression in the previous release that broke conversion of some documents that specify vertical alignment in absolute units --- src/calibre/ebooks/docx/char_styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/char_styles.py b/src/calibre/ebooks/docx/char_styles.py index f08e4ceb24..506532e30a 100644 --- a/src/calibre/ebooks/docx/char_styles.py +++ b/src/calibre/ebooks/docx/char_styles.py @@ -246,7 +246,7 @@ class RunStyle(object): c[x.replace('_', '-')] = '%.3gpt' % val if self.position is not inherit: - c['vertical-align'] = '%.3gpt' % val + c['vertical-align'] = '%.3gpt' % self.position if self.highlight is not inherit and self.highlight != 'transparent': c['background-color'] = self.highlight