commit 139859ded3a3ba6f8f894ae1fe9e7223c9511c1f
parent d99855f06072c33cef144edce68acded561e339a
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 20 Feb 2017 06:58:53 +0100
Merge pull request #2178 from bauerj/issue-2176
Remove newlines from transaction labels
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -235,6 +235,7 @@ class Abstract_Wallet(PrintError):
changed = False
old_text = self.labels.get(name)
if text:
+ text = text.replace("\n", " ")
if old_text != text:
self.labels[name] = text
changed = True