From b34aa51fc30607dffd4275f68f9f49c6b6b7c578 Mon Sep 17 00:00:00 2001 From: nicolas-f <1382241+nicolas-f@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:39:56 +0200 Subject: [PATCH] escape line returns --- services/pixljs_alert/zero_ble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/pixljs_alert/zero_ble.py b/services/pixljs_alert/zero_ble.py index 634c50c..4a2e197 100644 --- a/services/pixljs_alert/zero_ble.py +++ b/services/pixljs_alert/zero_ble.py @@ -100,7 +100,7 @@ def get_rpi_status(): for result in client.dict_stream(convert_datetime=True, filter=["TPV"]): gpdsdout = "%.5s %.5s" % (result.get("lat", "n/a"), result.get("lon", "n/a")) break - rpi_status = "Mic: %s\nVpn: %s\nBat: %s\nGps: %s" % (mic, vpn, battery, gpdsdout) + rpi_status = "Mic: %s\\nVpn: %s\\nBat: %s\\nGps: %s" % (mic, vpn, battery, gpdsdout) return rpi_status.encode("iso-8859-1")