From 388370b49d222209feac01ccb260c0476e33cecf Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Wed, 1 Feb 2023 21:53:23 +1100 Subject: [PATCH] Txt message cleanup 0.1 --- back/pialert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/pialert.py b/back/pialert.py index 99996cf9..0487b357 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -3315,7 +3315,7 @@ def get_all_devices(): #------------------------------------------------------------------------------- def removeDuplicateNewLines(text): - if "\n\n" in text: + if "\n\n\n" in text: return removeDuplicateNewLines(text.replace("\n\n\n", "\n\n")) else: return text