From 5c2015233c615b1f4b7d633bddfa1a19b8212f0a Mon Sep 17 00:00:00 2001 From: Kennyl Date: Tue, 24 Jan 2017 16:27:23 +0800 Subject: [PATCH] Fix localize the navbar Problems: ebook-convert + beautifulsoup generate
tag calibre gui + beautifulsoup generate
tag Solve by revise the regexp. --- recipes/apple_daily.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/apple_daily.recipe b/recipes/apple_daily.recipe index 865b7f8bbf..0d3dfd2d46 100644 --- a/recipes/apple_daily.recipe +++ b/recipes/apple_daily.recipe @@ -264,8 +264,8 @@ class AppleDaily(BasicNewsRecipe): not self.has_single_feed, a.orig_url, __appname__, prefix=prefix, center=self.center_navbar) - translatedTempl =re.sub('
.*

','
蘋果日報下載至'+__appname__+ - '

',templ.render(doctype='xhtml').decode('utf-8'),flags=re.S) + translatedTempl =re.sub('蘋果日報下載至'+__appname__+ + '