Add 'text-align' to the list of text properties that get removed on non-text elements. Fixes bug 714720.

This commit is contained in:
Louis Simard 2011-02-07 14:00:10 -05:00
parent da3c9f1d98
commit aee0804114

View file

@ -1317,8 +1317,9 @@ def repairStyle(node, options):
for fontstyle in [ 'font-family', 'font-size', 'font-stretch', 'font-size-adjust',
'font-style', 'font-variant', 'font-weight',
'letter-spacing', 'line-height', 'kerning',
'text-anchor', 'text-decoration', 'text-rendering',
'unicode-bidi', 'word-spacing', 'writing-mode'] :
'text-align', 'text-anchor', 'text-decoration',
'text-rendering', 'unicode-bidi',
'word-spacing', 'writing-mode'] :
if styleMap.has_key(fontstyle) :
del styleMap[fontstyle]
num += 1