[orca] Prevent repetition of lines during SayAll for web content



commit a1154ccb37a8e587d7ce3b2383a06e9fb1ef840d
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Jan 17 10:40:11 2020 -0500

    Prevent repetition of lines during SayAll for web content

 src/orca/scripts/web/script.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index fa91b3bc7..4d32d5d62 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -596,6 +596,9 @@ class Script(default.Script):
                     continue
 
                 obj, startOffset, endOffset, text = content
+                if startOffset == endOffset:
+                    continue
+
                 if self.utilities.isLabellingContents(obj):
                     continue
 


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