Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 3402)
+++ src/orca/Gecko.py	(working copy)
@@ -6379,6 +6379,14 @@
         if text and not (self.isAriaWidget(obj) 
                          and obj.getRole() == pyatspi.ROLE_LIST):
             unicodeText = self.getUnicodeText(obj)
+
+            # We now seem to be getting a final space when the line ends with
+            # an embedded object character.  Strip it off.
+            #
+            if (unicodeText[-1] == " ") \
+               and (unicodeText[-2] == self.EMBEDDED_OBJECT_CHARACTER):
+                unicodeText = unicodeText.strip()
+
             nextOffset = startOffset + 1
             while nextOffset < len(unicodeText):
                 if unicodeText[nextOffset] != self.EMBEDDED_OBJECT_CHARACTER:
@@ -6470,6 +6478,14 @@
         if text and not (self.isAriaWidget(obj) \
                          and obj.getRole() == pyatspi.ROLE_LIST):
             unicodeText = self.getUnicodeText(obj)
+
+            # We now seem to be getting a final space when the line ends with
+            # an embedded object character.  Strip it off.
+            #
+            if (unicodeText[-1] == " ") \
+               and (unicodeText[-2] == self.EMBEDDED_OBJECT_CHARACTER):
+                unicodeText = unicodeText.strip()
+
             if (startOffset == -1) or (startOffset > len(unicodeText)):
                 startOffset = len(unicodeText)
             previousOffset = startOffset - 1
