From 3ca6e7563425b67d4ed7e221da52cb86e1dc06c1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 30 Mar 2019 12:25:19 +0100 Subject: [PATCH] Added font style to generated pdf --- platypush/plugins/http/webpage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/http/webpage.py b/platypush/plugins/http/webpage.py index 425c4a9d2a..6318acb98e 100644 --- a/platypush/plugins/http/webpage.py +++ b/platypush/plugins/http/webpage.py @@ -61,8 +61,9 @@ class HttpWebpagePlugin(Plugin): raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason)) title = response.json()['title'] - content = '

{title}

{content}'.\ - format(title=title, content=response.json()['content']) + content = '

{title}

{content}'.\ + format(title=title, content=response.json()['content'], + body_style='font-size: 15px; font-family: Verdana, Geneva, sans-serif') if not outfile: return {