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

Don't add indentation after single item result in docs

This commit is contained in:
Paweł Chmielowski 2017-07-18 17:19:57 +02:00
parent cc3391cc1c
commit e216654c52

View File

@ -249,7 +249,7 @@ json_call(Name, ArgsDesc, Values, ResultDesc, Result, HTMLOutput) ->
{200, json_gen(ResultDesc, Result, Indent, HTMLOutput)}; {200, json_gen(ResultDesc, Result, Indent, HTMLOutput)};
{{Name0, _}, _} -> {{Name0, _}, _} ->
{200, [Indent, ?OP_L("{"), ?STR_A(Name0), ?OP_L(": "), {200, [Indent, ?OP_L("{"), ?STR_A(Name0), ?OP_L(": "),
json_gen(ResultDesc, Result, Indent, HTMLOutput), Indent, ?OP_L("}")]} json_gen(ResultDesc, Result, Indent, HTMLOutput), ?OP_L("}")]}
end, end,
CodeStr = case Code of CodeStr = case Code of
200 -> <<" 200 OK">>; 200 -> <<" 200 OK">>;