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