# HG changeset patch # User gibus # Date 1359377249 -3600 # Node ID f86b611f1876afd1855d3b587859a241fff58887 # Parent 6b3d72136e850634f85724d53ce816cf12a4720b Forgot a condition when using libreoffice as a fallback when abiword crashes. diff -r 6b3d72136e85 -r f86b611f1876 src/cm/views/export.py --- a/src/cm/views/export.py Mon Jan 28 12:19:11 2013 +0100 +++ b/src/cm/views/export.py Mon Jan 28 13:47:29 2013 +0100 @@ -81,8 +81,9 @@ 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, '') + if content_format == 'html': + 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: