Added font style to generated pdf

This commit is contained in:
Fabio Manganiello 2019-03-30 12:25:19 +01:00
parent 9fc243c93d
commit 3ca6e75634
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,9 @@ class HttpWebpagePlugin(Plugin):
raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason))
title = response.json()['title']
content = '<h1>{title}</h1>{content}'.\
format(title=title, content=response.json()['content'])
content = '<body style="{body_style}"><h1>{title}</h1>{content}</body>'.\
format(title=title, content=response.json()['content'],
body_style='font-size: 15px; font-family: Verdana, Geneva, sans-serif')
if not outfile:
return {