From e03d22bb3767ed576befd16f93397eb5d45522a6 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 3 Mar 2016 17:16:09 +0530 Subject: [PATCH] [fix] change parser in pdf generation --- frappe/utils/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/pdf.py b/frappe/utils/pdf.py index f465ca3979..8c33022191 100644 --- a/frappe/utils/pdf.py +++ b/frappe/utils/pdf.py @@ -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"):