Better presentation of result description in docs

This commit is contained in:
Paweł Chmielowski 2016-02-09 13:18:01 +01:00
parent 30d171e79e
commit c0da9b43ce
1 changed files with 3 additions and 2 deletions

View File

@ -360,8 +360,9 @@ gen_doc(#ejabberd_commands{name=Name, tags=_Tags, desc=Desc, longdesc=LongDesc,
none -> none ->
[?RAW(io_lib:format("~p", [Result]))]; [?RAW(io_lib:format("~p", [Result]))];
_ -> _ ->
[?RAW(io_lib:format("~p", [Result])), [?TAG(dl, [
?TAG_R(p, ResultDesc)] ?TAG(dt, io_lib:format("~p", [Result])),
?TAG_R(dd, ResultDesc)])]
end, end,
[?TAG(h1, [?TAG(strong, atom_to_list(Name)), <<" - ">>, ?RAW(Desc)]), [?TAG(h1, [?TAG(strong, atom_to_list(Name)), <<" - ">>, ?RAW(Desc)]),