[fix] change parser in pdf generation

This commit is contained in:
Rushabh Mehta 2016-03-03 17:16:09 +05:30
parent 3bacda598d
commit e03d22bb37

View file

@ -72,7 +72,7 @@ def prepare_options(html, options):
def read_options_from_html(html):
options = {}
soup = BeautifulSoup(html, "html.parser")
soup = BeautifulSoup(html, "html5lib")
# extract pdfkit options from html
for html_id in ("margin-top", "margin-bottom", "margin-left", "margin-right", "page-size"):