src/cm/views/export.py
changeset 495 f86b611f1876
parent 494 6b3d72136e85
equal deleted inserted replaced
494:6b3d72136e85 495:f86b611f1876
    79               from cm.converters.abi_converters import AbiFileConverter
    79               from cm.converters.abi_converters import AbiFileConverter
    80               converter = AbiFileConverter()
    80               converter = AbiFileConverter()
    81               try:
    81               try:
    82                 export_content = converter.convert_from_html(fix_content, format)
    82                 export_content = converter.convert_from_html(fix_content, format)
    83               except:
    83               except:
    84                 from cm.converters.oo_converters import combine_css_body                
    84                 if content_format == 'html':
    85                 fix_content = combine_css_body(content, '')
    85                   from cm.converters.oo_converters import combine_css_body                
       
    86                   fix_content = combine_css_body(content, '')
    86                 from cm.converters.oo_converters import convert_html as oo_convert                
    87                 from cm.converters.oo_converters import convert_html as oo_convert                
    87                 export_content = oo_convert(fix_content, format)
    88                 export_content = oo_convert(fix_content, format)
    88             else:
    89             else:
    89               from cm.converters.oo_converters import convert_html as oo_convert                
    90               from cm.converters.oo_converters import convert_html as oo_convert                
    90               export_content = oo_convert(fix_content, format)
    91               export_content = oo_convert(fix_content, format)