eww: Avoid newlines in window name

This commit is contained in:
ItsDrike 2024-07-31 23:16:32 +02:00
parent e1818d2abd
commit f765e8935b
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -97,6 +97,7 @@ def main() -> None:
formatted_name = new_name
break
formatted_name = formatted_name.split("\n")[0]
if len(formatted_name) > MAX_LENGTH:
formatted_name = formatted_name[: MAX_LENGTH - 3] + "..."