DOCX Input: Fix a regression in the previous release that broke conversion of some documents that specify vertical alignment in absolute units

This commit is contained in:
Kovid Goyal 2015-08-11 09:03:29 +05:30
parent 7ee4c44573
commit 66aae13cd7

View File

@ -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