[orca] Tweak the hackaround for CSSified broken text to handle Gecko broken text



commit 88ee3b2187acd888fb240e18efe6692607bcb156
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Aug 21 14:58:00 2019 -0400

    Tweak the hackaround for CSSified broken text to handle Gecko broken text
    
    We cannot merely check if the line text is greater than one character to
    identify text which is CSSified into brokenness. We also have to check that
    we got even a single character because Gecko's AtkText implementation is
    so broken.

 src/orca/scripts/web/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 954f83153..05c986d27 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2745,7 +2745,7 @@ class Utilities(script_utilities.Utilities):
             boundary = pyatspi.TEXT_BOUNDARY_LINE_START
             for i in range(nChars):
                 string, start, end = text.getTextAtOffset(i, boundary)
-                if len(string) > 1:
+                if len(string) != 1:
                     rv = False
                     break
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]