From a6562f219c6b41ef768d3f872b7c0b8a3ffc5fe9 Mon Sep 17 00:00:00 2001 From: CezaryPuchowski Date: Sun, 1 Oct 2023 14:48:54 +0200 Subject: [PATCH] small newline fix --- plugins/nodes_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/nodes_plugin.py b/plugins/nodes_plugin.py index fc1d019..1b343d5 100644 --- a/plugins/nodes_plugin.py +++ b/plugins/nodes_plugin.py @@ -47,7 +47,7 @@ $shortname $longname / $devicemodel / $battery $voltage / $snr / $lastseen meshtastic_client = connect_meshtastic() - response = f">Nodes: {len(meshtastic_client.nodes)}\n" + response = f">Nodes: {len(meshtastic_client.nodes)}" for node, info in meshtastic_client.nodes.items(): snr = "" @@ -67,9 +67,9 @@ $shortname $longname / $devicemodel / $battery $voltage / $snr / $lastseen if "batteryLevel" in info["deviceMetrics"]: battery = f"{info['deviceMetrics']['batteryLevel']}% " - response += f">**{info['user']['shortName']}** {info['user']['longName']}\n"\ + response += f"\n\n>**{info['user']['shortName']}** {info['user']['longName']}\n"\ f">{info['user']['hwModel']} {battery}{voltage}\n"\ - f">{snr}{last_heard}\n\n" + f">{snr}{last_heard}" return response