From: Alan T. DeKok Date: Tue, 29 Jan 2019 15:40:26 +0000 (-0500) Subject: print to $output, not STDOUT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=855656781eb005f1d3ede566eb903e66cd33b4f7;p=thirdparty%2Ffreeradius-server.git print to $output, not STDOUT --- diff --git a/scripts/asciidoc/conf2adoc b/scripts/asciidoc/conf2adoc index cd6959695c1..436f1c96345 100755 --- a/scripts/asciidoc/conf2adoc +++ b/scripts/asciidoc/conf2adoc @@ -60,7 +60,7 @@ sub process_file { # Print one line of blank text, but suppress multiple blank lines. if (/^\s*$/) { - print "\n" if (!$blank); + print $output "\n" if (!$blank); $blank = 1; next; } @@ -100,11 +100,11 @@ sub process_file { } if ($raw != $was_raw) { - print "```\n"; + print $output "```\n"; $was_raw = $raw; } - print $prefix if defined $prefix; + print $output $prefix if defined $prefix; $line = $_; @@ -179,7 +179,7 @@ sub process_file { # # Terminate any trailing "raw" text. # - print "```\n" if ($was_raw); + print $output "```\n" if ($was_raw); } sub HELP_MESSAGE {