From 7b13d1e237887d0b8d883118f8d5fef7ef9ed030 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Mar 2021 10:56:11 +0000 Subject: [PATCH] Don't allow newlines in desktop client timeline --- desktop_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_client.py b/desktop_client.py index 7f4df07de..be6641f69 100644 --- a/desktop_client.py +++ b/desktop_client.py @@ -928,6 +928,8 @@ def _desktopShowBox(boxName: str, boxJson: {}, content = '🔇' if postJsonObject['object'].get('bookmarks'): content = '🔖' + content + if '\n' in content: + content = content.replace('\n', ' ') print(indent + str(posStr) + ' | ' + name + ' | ' + published + ' | ' + content) ctr += 1