Add 'text-align' to the list of text properties that get removed on non-text elements. Fixes bug 714720.
This commit is contained in:
parent
da3c9f1d98
commit
aee0804114
1 changed files with 3 additions and 2 deletions
5
scour.py
5
scour.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue