[orca] Don't filter contents with length 1
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't filter contents with length 1
- Date: Mon, 12 Oct 2015 22:05:08 +0000 (UTC)
commit 3b9620b0430fb074164e6f5157d1f4ad3a2a07b9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Oct 12 18:03:22 2015 -0400
Don't filter contents with length 1
src/orca/scripts/web/script_utilities.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index fe27694..b83c0d0 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1695,6 +1695,9 @@ class Utilities(script_utilities.Utilities):
return True
+ if len(contents) == 1:
+ return contents
+
return list(filter(_include, contents))
def needsSeparator(self, lastChar, nextChar):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]