[orca] Don't say "blank" when in SayAll.



commit 33fffc6ebe90b0c7ef431091e27a54311642b612
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jan 3 07:42:29 2017 -0500

    Don't say "blank" when in SayAll.

 src/orca/speech_generator.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 43145a9..8b698ed 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -968,7 +968,8 @@ class SpeechGenerator(generator.Generator):
         acss = self.voice(DEFAULT)
         result = generator.Generator._generateCurrentLineText(self, obj, **args)
         if result:
-            if result == ['\n'] and _settingsManager.getSetting('speakBlankLines'):
+            if result == ['\n'] and _settingsManager.getSetting('speakBlankLines') \
+               and not self._script.inSayAll():
                 result = [messages.BLANK]
             result.extend(acss)
         return result
@@ -1223,7 +1224,8 @@ class SpeechGenerator(generator.Generator):
             result[0] = result[0].strip()
 
         result.extend(self._getACSS(obj, result[0]))
-        if result[0] in ['\n', ''] and _settingsManager.getSetting('speakBlankLines'):
+        if result[0] in ['\n', ''] and _settingsManager.getSetting('speakBlankLines') \
+           and not self._script.inSayAll():
             result[0] = messages.BLANK
 
         return result


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