Skip to content

Commit

Permalink
Remove trailing spaces in synced lyrics lines without text
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Oct 30, 2024
1 parent d87cdce commit 16188fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beetsplug/lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 16188fa

Please sign in to comment.