[orca] More stripping whitespace when name comes from contents rather than author



commit c0a5661c3a8b8f25f706d9c0b36f92af12daf379
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jul 13 16:16:19 2019 -0400

    More stripping whitespace when name comes from contents rather than author

 src/orca/scripts/web/speech_generator.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 27a5ad4a0..e712f1d26 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -170,7 +170,10 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
             return []
 
         if obj.name:
-            result = [obj.name]
+            name = obj.name
+            if not self._script.utilities.hasExplicitName(obj):
+                name = name.strip()
+            result = [name]
             result.extend(self.voice(speech_generator.DEFAULT))
             return result
 


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