diff --git a/doc/lib/pgBackRestDoc/Common/DocConfig.pm b/doc/lib/pgBackRestDoc/Common/DocConfig.pm index c9dd44574..d2cb3bae7 100644 --- a/doc/lib/pgBackRestDoc/Common/DocConfig.pm +++ b/doc/lib/pgBackRestDoc/Common/DocConfig.pm @@ -889,20 +889,12 @@ sub helpOptionGet } else { - foreach my $strLine (split('\\|', $$oOptionHash{&CONFIG_HELP_EXAMPLE})) + if (defined($strCommand)) { - if ($strExample ne '') - { - $strExample .= ' '; - } - - if (defined($strCommand)) - { - $strExample .= '--'; - } - - $strExample .= "${strOptionIndex}=${strLine}"; + $strExample = '--'; } + + $strExample .= "${strOptionIndex}=" . $$oOptionHash{&CONFIG_HELP_EXAMPLE}; } $strCodeBlock .= (defined($strCodeBlock) ? "\n" : '') . "example: ${strExample}"; diff --git a/doc/xml/release/2023/2.48.xml b/doc/xml/release/2023/2.48.xml index dd7ad326e..0593a35d1 100644 --- a/doc/xml/release/2023/2.48.xml +++ b/doc/xml/release/2023/2.48.xml @@ -183,6 +183,14 @@
Fix configuration reference example for the
Fix command reference example for the