src/cm/views/texts.py
changeset 433 056d92bffb23
parent 420 0c2f890486c0
child 443 cacd524f5279
equal deleted inserted replaced
432:aad07a378d44 433:056d92bffb23
   339     else :
   339     else :
   340         if format in ('markdown', 'latex') : 
   340         if format in ('markdown', 'latex') : 
   341             use_pandoc = True
   341             use_pandoc = True
   342         elif format in ('pdf', 'odt') : 
   342         elif format in ('pdf', 'odt') : 
   343             use_pandoc = (original_format == "markdown")
   343             use_pandoc = (original_format == "markdown")
   344         elif format in ('doc', 'html') :
   344         elif format in ('docx', 'doc', 'html') :
   345             use_pandoc = False
   345             use_pandoc = False
   346 
   346 
   347     # correct attach path => real path
   347     # correct attach path => real path
   348     if format in ('pdf','odt') :        
   348     if format in ('pdf','odt') :        
   349         original_content = from_html_links_to_abs_links(original_content)
   349         original_content = from_html_links_to_abs_links(original_content)