]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print to $output, not STDOUT
authorAlan T. DeKok <aland@freeradius.org>
Tue, 29 Jan 2019 15:40:26 +0000 (10:40 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 29 Jan 2019 15:42:20 +0000 (10:42 -0500)
scripts/asciidoc/conf2adoc

index cd6959695c1c7a5e88d263712aa24a30c005fdad..436f1c963459278b12406ae66e9468acccba0f2b 100755 (executable)
@@ -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 {