summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2016-03-05 22:04:06 -0500
committerrsiddharth <rsd@gnu.org>2016-03-05 22:04:06 -0500
commitdc619c62f33047ac6a7a76f7efbac89dfa70dae8 (patch)
tree86511e6243e55c7fae5f24c9607f5bd19769eae1 /lps_gen.py
parent5906a801f67d2b5d361d99cf2a12d9540de790fb (diff)
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 (limited to 'lps_gen.py')
-rw-r--r--lps_gen.py2
1 files changed, 1 insertions, 1 deletions
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():