mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 23:03:26 +01:00
replace \r by \n
This commit is contained in:
parent
f207a3b72e
commit
cf73d7cb08
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ def extract_text(html, starttag):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue