src/cm/views/export.py
changeset 494 6b3d72136e85
parent 460 2fdb7d095d5c
child 495 f86b611f1876
--- a/src/cm/views/export.py	Mon Jan 28 10:44:48 2013 +0100
+++ b/src/cm/views/export.py	Mon Jan 28 12:19:11 2013 +0100
@@ -78,7 +78,13 @@
             if USE_ABI:
               from cm.converters.abi_converters import AbiFileConverter
               converter = AbiFileConverter()
-              export_content = converter.convert_from_html(fix_content, format)
+              try:
+                export_content = converter.convert_from_html(fix_content, format)
+              except:
+                from cm.converters.oo_converters import combine_css_body                
+                fix_content = combine_css_body(content, '')
+                from cm.converters.oo_converters import convert_html as oo_convert                
+                export_content = oo_convert(fix_content, format)
             else:
               from cm.converters.oo_converters import convert_html as oo_convert                
               export_content = oo_convert(fix_content, format)