25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Rewrite sentences in modules options examples, to not break Docs indentation

This commit is contained in:
Badlop 2020-04-28 21:31:35 +02:00
parent b56663ef07
commit 4a7d42647f
2 changed files with 4 additions and 8 deletions

View File

@ -481,12 +481,9 @@ mod_doc() ->
"the list of supported formats is detected at compile time "
"depending on the image libraries installed in the system."),
example =>
[{?T("In this example avatars in WebP format are "
"converted to JPEG, all other formats are "
"converted to PNG:"),
["convert:",
" webp: jpg",
" default: png"]}]}},
" default: png"]}},
{rate_limit,
#{value => ?T("Number"),
desc =>

View File

@ -522,12 +522,11 @@ mod_doc() ->
?T("Specify mappings of extension to content type. "
"There are several content types already defined. "
"With this option you can add new definitions "
"or modify existing ones."),
"or modify existing ones. The default values are:"),
example =>
[{?T("The default value is shown in the example below:"),
["content_types:"|
[" " ++ binary_to_list(E) ++ ": " ++ binary_to_list(T)
|| {E, T} <- ?DEFAULT_CONTENT_TYPES]]}]}},
|| {E, T} <- ?DEFAULT_CONTENT_TYPES]]}},
{default_content_type,
#{value => ?T("Type"),
desc =>