]> granicus.if.org Git - ejabberd/commitdiff
Better presentation of result description in docs
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 9 Feb 2016 12:18:01 +0000 (13:18 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 9 Feb 2016 12:18:01 +0000 (13:18 +0100)
src/ejabberd_commands_doc.erl

index e9054143bda41b9657cb39645f683e137f1a4be7..df4ba9df938d7a6ba25343ef05c3ca14a59c0a25 100644 (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)]),