diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-07-18 17:19:57 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-07-18 17:48:53 +0200 |
commit | e216654c52f69c164e54763364daf0b87a25069e (patch) | |
tree | 89169cf6b17336540a483b18d2a758dd5e9f8ff5 | |
parent | Use string:join instead of lists:join (diff) |
Don't add indentation after single item result in docs
-rw-r--r-- | src/ejabberd_commands_doc.erl | 2 |
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">>; |