From: Bryan Date: Fri, 17 Jan 2014 17:35:00 +0000 (-0500) Subject: workaround because beautifulsoup breaks pdf2html prettifulness X-Git-Tag: release-20150131~231 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37de1b9e069ce1a44073c2f2e32a156a5009fa97;p=oweals%2Fkarmaworld.git workaround because beautifulsoup breaks pdf2html prettifulness --- diff --git a/karmaworld/apps/notes/gdrive.py b/karmaworld/apps/notes/gdrive.py index 6ad9f38..f39ab95 100644 --- a/karmaworld/apps/notes/gdrive.py +++ b/karmaworld/apps/notes/gdrive.py @@ -225,8 +225,8 @@ def convert_raw_document(raw_document, user=None, session_key=None): html = pdf2html(content_dict['pdf']) elif 'html' in content_dict and content_dict['html']: html = content_dict['html'] - # cleanup the HTML - html = note.filter_html(html) + # cleanup the HTML + html = note.filter_html(html) # upload the HTML file to static host if it is not already there note.send_to_s3(html, do_save=False)