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:
parent
45a8a0fb53
commit
dc613df3b1
@ -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, _} ->
|
||||
|
Loading…
Reference in New Issue
Block a user