diff --git a/platypush/plugins/http/webpage/__init__.py b/platypush/plugins/http/webpage/__init__.py index e92648f4f8..a0bdcbd697 100644 --- a/platypush/plugins/http/webpage/__init__.py +++ b/platypush/plugins/http/webpage/__init__.py @@ -68,9 +68,7 @@ class HttpWebpagePlugin(Plugin): 'Published' if response.get('date_published') else 'Generated', response.get('date_published', datetime.datetime.now().isoformat()))) - content = '

{title}

{content}'.\ - format(title=title, content=response.get('content', '[No content available]'), - body_style='font-size: 22px; font-family: Tahoma, Geneva, sans-serif') + content = response.get('content', '') if not outfile: return { @@ -79,6 +77,10 @@ class HttpWebpagePlugin(Plugin): 'content': content, } + content = '

{title}

{content}'. \ + format(title=title, content=content, + body_style='font-size: 22px; font-family: Tahoma, Geneva, Verdana, Helvetica, sans-serif') + outfile = os.path.abspath(os.path.expanduser(outfile)) if outfile.lower().endswith('.pdf'):