[orca/570658-whereami] Fix handling of changes in attributes across a line



commit 14f0810f999d48c1322339467c778f46825b6597
Author: Willie Walker <william walker sun com>
Date:   Thu Jun 4 20:57:57 2009 -0400

    Fix handling of changes in attributes across a line
---
 src/orca/speech_generator.py |    2 +-
 src/orca/where_am_I.py       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index b9bdc70..994550e 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1311,7 +1311,7 @@ class SpeechGenerator:
                     newLine += " ; "
                 newLine += attribs
                 newLine += " "
-                lastAttribs = attribs
+            lastAttribs = attribs
             newLine += line[i]
             textOffset += 1
 
diff --git a/src/orca/where_am_I.py b/src/orca/where_am_I.py
index 4c20d2e..47ba375 100644
--- a/src/orca/where_am_I.py
+++ b/src/orca/where_am_I.py
@@ -146,8 +146,8 @@ class WhereAmI:
         utterances.append(text)
         debug.println(self._debugLevel, "first text utterances=%s" % \
                       utterances)
-        print utterances
-        print self.getWhereAmI(obj, basicOnly)
+        print "OLD:", utterances
+        print "NEW:", self.getWhereAmI(obj, basicOnly)
         print "================"
         speech.speak(utterances)
 



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