[orca] More work arounds for newlines messing up mouse review



commit ad693b3c31c8b3fb7b48f5323f7e659ab9d42965
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jul 9 10:29:03 2019 -0400

    More work arounds for newlines messing up mouse review

 src/orca/mouse_review.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index 8fde68564..60cc9d7ad 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -102,7 +102,7 @@ class _StringContext:
         if self._script.utilities.intersection(thisBox, otherBox) != thisBox:
             return False
 
-        if not (self._string and self._string in other._string):
+        if not (self._string and self._string.strip() in other._string):
             return False
 
         msg = "MOUSE REVIEW: '%s' is substring of '%s'" % (self._string, other._string)


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