Index: src/orca/scripts/toolkits/Gecko/script.py
===================================================================
--- src/orca/scripts/toolkits/Gecko/script.py	(revision 3901)
+++ src/orca/scripts/toolkits/Gecko/script.py	(working copy)
@@ -6005,7 +6005,12 @@
                 if childIndex >= 0:
                     child = obj[childIndex]
                     childText = self.queryNonEmptyText(child)
-                    if childText:
+                    childRole = child.getRole()
+                    # If the object represented by the EOC at the beginning
+                    # of this line is a section, it is functionally not part
+                    # of this line and should not be included here.
+                    #
+                    if childText and not childRole == pyatspi.ROLE_SECTION:
                         noChars = childText.characterCount
                         [cLine, cStart, cEnd] = \
                                childText.getTextAtOffset(noChars - 1, boundary)
@@ -6014,8 +6019,9 @@
                             start = cStart
                         else:
                             start += 1
-                    elif not child.getRole() in [pyatspi.ROLE_LINK,
-                                                 pyatspi.ROLE_IMAGE]:
+                    elif not childRole in [pyatspi.ROLE_LINK,
+                                           pyatspi.ROLE_IMAGE,
+                                           pyatspi.ROLE_SECTION]:
                         text = None
                         obj = child
                     else:
