equal
deleted
inserted
replaced
335 |
335 |
336 # decide to use pandoc or not |
336 # decide to use pandoc or not |
337 if with_color : |
337 if with_color : |
338 use_pandoc = False # pandoc wouldn't preserve comments scope background colors |
338 use_pandoc = False # pandoc wouldn't preserve comments scope background colors |
339 else : |
339 else : |
340 if format in ('markdown', 'latex') : |
340 if format in ('markdown', 'latex', 'epub') : |
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 ('docx', 'doc', 'html') : |
344 elif format in ('docx', 'doc', 'html') : |
345 use_pandoc = False |
345 use_pandoc = False |