25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

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

View File

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