lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit dc619c62f33047ac6a7a76f7efbac89dfa70dae8
parent 5906a801f67d2b5d361d99cf2a12d9540de790fb
Author: rsiddharth <rsd@gnu.org>
Date:   Sat,  5 Mar 2016 22:04:06 -0500

changed RenderHTML.

It does not "prettify" the HTML output using BeautifulSoup, instead it
just strips extraneous spaces and returns the HTML.

Addresses issue #3.

Diffstat:
lps_gen.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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():