From 4258623f54bf1ce064af47cbad6f37c74972a025 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 7 Dec 2022 16:04:03 +0100 Subject: [PATCH] [Newm] Fix unread email count --- .config/newm/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/newm/config.py b/.config/newm/config.py index 61403d0..951aeb8 100644 --- a/.config/newm/config.py +++ b/.config/newm/config.py @@ -232,7 +232,7 @@ def unread_emails() -> str: text=True, check=True, ).stdout - nbr_unread: int = len(str(unread).split("\n")) + nbr_unread: int = len(str(unread).strip().split("\n")) return f" {nbr_unread}"