mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Support for version note in modules too
This commit is contained in:
parent
da01d932ea
commit
b70a2fe4cf
1 changed files with 2 additions and 1 deletions
|
@ -110,6 +110,7 @@ man(Lang) ->
|
||||||
lists:duplicate(length(atom_to_list(M)), $~),
|
lists:duplicate(length(atom_to_list(M)), $~),
|
||||||
"[[" ++ ModName ++ "]]",
|
"[[" ++ ModName ++ "]]",
|
||||||
io_lib:nl()] ++
|
io_lib:nl()] ++
|
||||||
|
format_versions(Lang, Example) ++ [io_lib:nl()] ++
|
||||||
tr_multi(Lang, Descr) ++ [io_lib:nl()] ++
|
tr_multi(Lang, Descr) ++ [io_lib:nl()] ++
|
||||||
opts_to_man(Lang, [{M, '', DocOpts}|Backends]) ++
|
opts_to_man(Lang, [{M, '', DocOpts}|Backends]) ++
|
||||||
format_example(0, Lang, Example)
|
format_example(0, Lang, Example)
|
||||||
|
@ -184,7 +185,7 @@ format_option(Lang, Option, #{value := Val} = Options) ->
|
||||||
format_option(_Lang, Option, #{}) ->
|
format_option(_Lang, Option, #{}) ->
|
||||||
"*" ++ atom_to_list(Option) ++ "*::".
|
"*" ++ atom_to_list(Option) ++ "*::".
|
||||||
|
|
||||||
format_versions(_Lang, #{note := Note}) ->
|
format_versions(_Lang, #{note := Note}) when Note /= [] ->
|
||||||
["_Note_ about this option: " ++ Note ++ ". "];
|
["_Note_ about this option: " ++ Note ++ ". "];
|
||||||
format_versions(_, _) ->
|
format_versions(_, _) ->
|
||||||
[].
|
[].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue