[orca] Remove a broken-text-recovery attempt for plain-text content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove a broken-text-recovery attempt for plain-text content
- Date: Tue, 5 Sep 2017 13:46:23 +0000 (UTC)
commit 38627e36f15f17e7cf2c819b596617c393d5853c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Sep 5 09:44:32 2017 -0400
Remove a broken-text-recovery attempt for plain-text content
src/orca/scripts/web/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 4aa2c9c..87cb2d9 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1016,7 +1016,7 @@ class Utilities(script_utilities.Utilities):
% (offset, obj, boundary, s1, start, end, text.characterCount, s2)
debug.println(debug.LEVEL_INFO, msg, True)
needSadHack = True
- elif not (start <= offset < end):
+ elif not (start <= offset < end) and not self.isPlainText():
s1 = string.replace(self.EMBEDDED_OBJECT_CHARACTER, "[OBJ]").replace("\n", "\\n")
msg = "FAIL: Bad results for text at offset %i for %s using %s:\n" \
" String: '%s', Start: %i, End: %i.\n" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]