[orca] Strip trailing whitespace when comparing any_data to clipboard contents
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Strip trailing whitespace when comparing any_data to clipboard contents
- Date: Sat, 20 Feb 2016 21:47:58 +0000 (UTC)
commit 223f17ae5ea177c03c4e80856dbfe8209c718764
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Feb 20 16:47:03 2016 -0500
Strip trailing whitespace when comparing any_data to clipboard contents
src/orca/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 08fade2..3e904e2 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3960,7 +3960,7 @@ class Utilities:
# HACK: If the application treats each paragraph as a separate object,
# we'll get individual events for each paragraph rather than a single
# event whose any_data matches the clipboard contents.
- if "\n" in contents and event.any_data in contents:
+ if "\n" in contents and event.any_data.rstrip() in contents:
return True
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]