diff --git a/doc/sphinx/build-config-doc-ref.pl b/doc/sphinx/build-config-doc-ref.pl index 1588858..a8a35aa 100644 --- a/doc/sphinx/build-config-doc-ref.pl +++ b/doc/sphinx/build-config-doc-ref.pl @@ -21,11 +21,9 @@ sub dumpdoc { elsif (defined $h{param} && defined $h{default} && defined $h{desc} && defined $h{type}) { die "attempting to dump data but section=$section" if !$section; push @{$sections{$section}}, $h{param}; - push @out, ".. _$h{param}:\n", "\n" - if $ENV{'GLOBAL_REFS'}; + push @out, (".. _$h{param}:\n", "\n") if $ENV{'GLOBAL_REFS'}; push @out, "$h{param}\n", "*" x length($h{param}) . "\n", "\n", ":Type: ``$h{type}``\n", "\n", ":Default: ``$h{default}``\n", "\n"; - push @out, ":Example: ``$h{example}``\n", "\n" - if $h{example}; + push @out, (":Example: ``$h{example}``\n", "\n") if $h{example}; push @out, "$h{desc}\n", "\n"; } else {