zyrouge / node-genius-lyrics

Simple lyrics fetcher that uses Genius. Also has official API implementations.
https://genius-lyrics.js.org
MIT License
61 stars 12 forks source link

.lyrics() sometimes returns extra newlines #22

Closed MrPropre closed 2 years ago

MrPropre commented 2 years ago

Hello @zyrouge

/lyrics() function sometimes returns extra newlines. In the current version of genius-lyrics there is the same treatment for .lyrics and .Lyrics__Container divs. But with .lyrics you don't need to add extra treatment because line breaks are already appended. This behavior is avoided in #19 because there is no extra treatment when using .lyrics.

Normal behavior : image

Bug : image

Thank you in advance.

zyrouge commented 2 years ago

Ah, will be fixing today.