25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

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
This commit is contained in:
Pablo Polvorin 2009-05-27 15:02:44 +00:00
parent 45a8a0fb53
commit dc613df3b1

View File

@ -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, _} ->