[orca: 1/2] Prepend newline to text when appending to clipboard.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca: 1/2] Prepend newline to text when appending to clipboard.
- Date: Tue, 18 Feb 2020 21:03:48 +0000 (UTC)
commit eef0c530fdedcb80e1567b6b850f079408c876ca
Author: Nolan Darilek <nolan thewordnerd info>
Date: Tue Feb 18 21:03:30 2020 +0000
Prepend newline to text when appending to clipboard.
src/orca/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index e1e17f03d..9c7813073 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4774,7 +4774,7 @@ class Utilities:
clipboard = Gtk.Clipboard.get(Gdk.Atom.intern("CLIPBOARD", False))
clipboard.request_text(self._appendTextToClipboardCallback, text)
- def _appendTextToClipboardCallback(self, clipboard, text, newText, separator=" "):
+ def _appendTextToClipboardCallback(self, clipboard, text, newText, separator="\n"):
text = text.rstrip("\n")
text = "%s%s%s" % (text, separator, newText)
clipboard.set_text(text, -1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]