From dc619c62f33047ac6a7a76f7efbac89dfa70dae8 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 5 Mar 2016 22:04:06 -0500 Subject: changed RenderHTML. It does not "prettify" the HTML output using BeautifulSoup, instead it just strips extraneous spaces and returns the HTML. Addresses issue #3. --- lps_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lps_gen.py b/lps_gen.py index 56fd15e..544ff02 100644 --- a/lps_gen.py +++ b/lps_gen.py @@ -372,7 +372,7 @@ def RenderHTML(lp_dict, template): lp_html = template.render(lp_dict=lp_dict) - return BeautifulSoup(lp_html, 'html.parser').prettify() + return str(BeautifulSoup(lp_html, 'html.parser')).strip() def main(): -- cgit v1.2.3