Commit 016f2722 authored by Jérome Perrin's avatar Jérome Perrin

Don't convert if format is an empty string



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14755 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79753ea8
...@@ -472,7 +472,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0"> ...@@ -472,7 +472,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
opts = extra_context.get("options", None) opts = extra_context.get("options", None)
if opts is not None: if opts is not None:
format = opts.get('format', request.get('format', None)) format = opts.get('format', request.get('format', None))
if format is not None: if format:
return self._asFormat(ooo, format, request) return self._asFormat(ooo, format, request)
# Do not send a RESPONSE if in batch_mode # Do not send a RESPONSE if in batch_mode
......
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