orca r4560 - in branches/gnome-2-24: . src/orca
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4560 - in branches/gnome-2-24: . src/orca
- Date: Mon, 16 Feb 2009 12:56:46 +0000 (UTC)
Author: wwalker
Date: Mon Feb 16 12:56:46 2009
New Revision: 4560
URL: http://svn.gnome.org/viewvc/orca?rev=4560&view=rev
Log:
Additional fix for bug 569343 - Speaking of indentation is misleading
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/orca/default.py
Modified: branches/gnome-2-24/src/orca/default.py
==============================================================================
--- branches/gnome-2-24/src/orca/default.py (original)
+++ branches/gnome-2-24/src/orca/default.py Mon Feb 16 12:56:46 2009
@@ -2204,7 +2204,7 @@
utterance = ""
offset = 0
while True:
- while line[offset] == ' ':
+ while (offset < len(line)) and line[offset] == ' ':
spaceCount += 1
offset += 1
if spaceCount:
@@ -2215,10 +2215,9 @@
"%d spaces",
spaceCount) % spaceCount + " "
- while line[offset] == '\t':
+ while (offset < len(line)) and line[offset] == '\t':
tabCount += 1
offset += 1
-
if tabCount:
# Translators: this is the number of tab characters on a line
# of text.
@@ -2226,6 +2225,7 @@
utterance += ngettext("%d tab",
"%d tabs",
tabCount) % tabCount + " "
+
if not (spaceCount or tabCount):
break
spaceCount = tabCount = 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]