Commits

Fabrice Laporte committed 80a5f90

replace \r by \n

Comments (0)

Files changed (1)

beetsplug/lyrics.py

     lyrics = re.sub(r'\n +', '\n', lyrics)
     lyrics = re.sub(r' +\n', '\n', lyrics)
     lyrics = TAG_RE.sub('', lyrics) # Strip remaining HTML tags.
+    lyrics = lyrics.replace('\r','\n')
     lyrics = lyrics.strip()
     return lyrics