Skip to content

Commit 79b2af5

Browse files
committed
Remove trailing spaces in synced lyrics lines without text
1 parent 1712111 commit 79b2af5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

beetsplug/lyrics.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ def get_text(self, want_synced: bool) -> str:
348348
if self.instrumental:
349349
return INSTRUMENTAL_LYRICS
350350

351-
return self.synced if want_synced and self.synced else self.plain
351+
if want_synced and self.synced:
352+
return "\n".join(map(str.strip, self.synced.splitlines()))
353+
354+
return self.plain
352355

353356

354357
class LRCLib(Backend):

0 commit comments

Comments
 (0)