Commit f52875a3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

the format impr.html is used to htm and xhtml too. this format is used to...

the format impr.html is used to htm and xhtml too. this format is used to export correctly the documents in erp5_dms.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@37499 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9be50d11
...@@ -115,7 +115,10 @@ class UnoConverter(object): ...@@ -115,7 +115,10 @@ class UnoConverter(object):
def convert(self, output_format=None): def convert(self, output_format=None):
"""it converts a document to specific format""" """it converts a document to specific format"""
destination_format = "impr.html" if output_format == "html" else output_format if output_format in ("html", "htm", "xhtml"):
destination_format = "impr.html"
else:
destination_format = output_format
output_url = mktemp(suffix='.%s' % destination_format, output_url = mktemp(suffix='.%s' % destination_format,
dir=self.document_dir_path) dir=self.document_dir_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment