[fix] change parser in pdf generation
This commit is contained in:
parent
3bacda598d
commit
e03d22bb37
1 changed files with 1 additions and 1 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue