Remove newlines from transaction labels

Closes: #2176
This commit is contained in:
Johann Bauer 2017-02-19 22:37:45 +01:00
parent d99855f060
commit 03fc29c4ac
1 changed files with 1 additions and 0 deletions

View File

@ -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