From aee080411430e11fbab1ca4adcdc5d93a133f182 Mon Sep 17 00:00:00 2001 From: Louis Simard Date: Mon, 7 Feb 2011 14:00:10 -0500 Subject: [PATCH] Add 'text-align' to the list of text properties that get removed on non-text elements. Fixes bug 714720. --- scour.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scour.py b/scour.py index d009c0a..d497da0 100755 --- a/scour.py +++ b/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