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

View File

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