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}"