mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Better Tagline Formatting
This commit is contained in:
parent
05b97d86e0
commit
e0b848a08d
@ -264,7 +264,7 @@ class AppleDaily(BasicNewsRecipe):
|
||||
not self.has_single_feed,
|
||||
a.orig_url, __appname__, prefix=prefix,
|
||||
center=self.center_navbar)
|
||||
translatedTempl =re.sub('<hr.*<br','<hr>從<a href="'+a.orig_url+'">蘋果日報</a>下載至'+__appname__+
|
||||
translatedTempl =re.sub('<hr.*<br','<hr>本篇由 '+__appname__+' 快取自 <a href="http://hkm.appledaily.com/" >蘋果日報</a> ; <a href="'+a.orig_url+'">本篇來源位置</a>。'+
|
||||
'<br',templ.render(doctype='xhtml').decode('utf-8'),flags=re.S)
|
||||
elem = BeautifulSoup(translatedTempl).find('div')
|
||||
body.insert(len(body.contents), elem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user