workaround because beautifulsoup breaks pdf2html prettifulness
authorBryan <btbonval@gmail.com>
Fri, 17 Jan 2014 17:35:00 +0000 (12:35 -0500)
committerBryan <btbonval@gmail.com>
Fri, 17 Jan 2014 17:35:00 +0000 (12:35 -0500)
karmaworld/apps/notes/gdrive.py

index 6ad9f380a2741aa61f85a714538f1add8b4d8418..f39ab958ade96ee78c27408e185aee7419481bbd 100644 (file)
@@ -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)