From 8d6762f259e81ecb97fa1e52ddc7591f1fc14494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Wed, 23 Oct 2024 15:37:41 +0100 Subject: [PATCH] Remove trailing spaces in synced lyrics lines without text --- beetsplug/lyrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index b660328aa7..e6ab217c5b 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -348,7 +348,10 @@ def get_text(self, want_synced: bool) -> str: if self.instrumental: return INSTRUMENTAL_LYRICS - return self.synced if want_synced and self.synced else self.plain + if want_synced and self.synced: + return "\n".join(map(str.strip, self.synced.splitlines())) + + return self.plain class LRCLib(Backend):