Commit a76f417f authored by Gabriel Monnerat's avatar Gabriel Monnerat

added document type to force a specific filter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@39303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cb09154
...@@ -210,7 +210,7 @@ class Manager(object): ...@@ -210,7 +210,7 @@ class Manager(object):
# XXX - use html format instead of xhtml # XXX - use html format instead of xhtml
if orig_format == "presentation" and extension == "xhtml": if orig_format == "presentation" and extension == "xhtml":
extension = 'html' extension = 'html'
elif orig_format == "spreadsheet" and extension in ("html", "xhtml"): elif orig_format in ("spreadsheet", 'text') and extension in ("html", "xhtml"):
extension = "htm" extension = "htm"
response_dict['data'] = self.convertFile(data, orig_format, extension, response_dict['data'] = self.convertFile(data, orig_format, extension,
zip) zip)
......
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