25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +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 Data = case lists:member(html, Headers) of
true -> true ->
list_to_binary([?HTML_DOCTYPE, 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, list_to_binary([?XHTML_DOCTYPE,
exmpp_xml:document_to_list(exmpp_xml:indent_document(XHTML, <<>>))]) exmpp_xml:document_to_list(XHTML)])
end, end,
Headers1 = case lists:keysearch("Content-Type", 1, Headers) of Headers1 = case lists:keysearch("Content-Type", 1, Headers) of
{value, _} -> {value, _} ->