mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix USA Today
This commit is contained in:
parent
cc75e7291b
commit
eefa1d58c2
@ -377,8 +377,9 @@ class USAToday(BasicNewsRecipe):
|
|||||||
if byline:
|
if byline:
|
||||||
byline['class'] = 'byline'
|
byline['class'] = 'byline'
|
||||||
# Replace comma with middot
|
# Replace comma with middot
|
||||||
byline.contents[0].replaceWith(re.sub(","," ·", byline.renderContents()))
|
byline.contents[0].replaceWith(re.sub(u",", u" ·",
|
||||||
return byline.renderContents()
|
byline.renderContents(encoding=None)))
|
||||||
|
return byline.renderContents(encoding=None)
|
||||||
else :
|
else :
|
||||||
paras = soup.findAll(text=True)
|
paras = soup.findAll(text=True)
|
||||||
for para in paras:
|
for para in paras:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user