# HG changeset patch # User Björn Ricks # Date 1415792317 -3600 # Node ID 2dacbe7fb7f942129fe3acd976984e35c2e9cf96 # Parent ea839127934d7e973ce083adbd07c2466a6ce291 Fix returning html formatted error response diff -r ea839127934d -r 2dacbe7fb7f9 odfcast/convert.py --- a/odfcast/convert.py Wed Nov 12 12:21:09 2014 +0100 +++ b/odfcast/convert.py Wed Nov 12 12:38:37 2014 +0100 @@ -49,8 +49,7 @@ }), JSON_MIMETYPE def html(self, title, error_code, details): - data = "" - return ( + data = ( u'\n' u'%(code)s %(name)s\n' u'

%(name)s

\n'