From dc613df3b1bfc52ff9412e3d6d3f5ca5c84dcc4d Mon Sep 17 00:00:00 2001 From: Pablo Polvorin Date: Wed, 27 May 2009 15:02:44 +0000 Subject: [PATCH] Do not indent the resulting html. Indentation in exmpp is buggy, and there isn't a real adventage on indenting the generated html SVN Revision: 2106 --- src/web/ejabberd_http.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/ejabberd_http.erl b/src/web/ejabberd_http.erl index 0310737b5..facfcef4b 100644 --- a/src/web/ejabberd_http.erl +++ b/src/web/ejabberd_http.erl @@ -472,10 +472,10 @@ make_xhtml_output(State, Status, Headers, XHTML) -> Data = case lists:member(html, Headers) of true -> list_to_binary([?HTML_DOCTYPE, - exmpp_xml:document_to_list(exmpp_xml:indent_document(XHTML, <<>>))]); + exmpp_xml:document_to_list(XHTML)]); _ -> list_to_binary([?XHTML_DOCTYPE, - exmpp_xml:document_to_list(exmpp_xml:indent_document(XHTML, <<>>))]) + exmpp_xml:document_to_list(XHTML)]) end, Headers1 = case lists:keysearch("Content-Type", 1, Headers) of {value, _} ->