From 89c25557539154e186d97517788cb624fa561f0e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 5 Oct 2019 22:48:07 +0200 Subject: [PATCH] Improved font in http.webpage.simplify for HTML and PDF output --- platypush/plugins/http/webpage/__init__.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/http/webpage/__init__.py b/platypush/plugins/http/webpage/__init__.py index 333d7850e..ddf0f2c11 100644 --- a/platypush/plugins/http/webpage/__init__.py +++ b/platypush/plugins/http/webpage/__init__.py @@ -77,9 +77,22 @@ 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') + content = ''' + + + {title} + + + +

{title}

+ {content} + + '''.format(title=title, content=content) outfile = os.path.abspath(os.path.expanduser(outfile))