aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-07-18 17:19:57 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-07-18 17:48:53 +0200
commite216654c52f69c164e54763364daf0b87a25069e (patch)
tree89169cf6b17336540a483b18d2a758dd5e9f8ff5 /src
parentUse string:join instead of lists:join (diff)
Don't add indentation after single item result in docs
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_commands_doc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_commands_doc.erl b/src/ejabberd_commands_doc.erl
index a458cdb9a..f90b70bce 100644
--- a/src/ejabberd_commands_doc.erl
+++ b/src/ejabberd_commands_doc.erl
@@ -249,7 +249,7 @@ json_call(Name, ArgsDesc, Values, ResultDesc, Result, HTMLOutput) ->
{200, json_gen(ResultDesc, Result, Indent, HTMLOutput)};
{{Name0, _}, _} ->
{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,
CodeStr = case Code of
200 -> <<" 200 OK">>;