]> sjero.net Git - wget/blobdiff - doc/texi2pod.pl
NEWS: cite --start-pos
[wget] / doc / texi2pod.pl
index 3fe0b8f12d7241133d5ff3d833370eb1b6793b88..9db6de1758c24f44e1e6a79d3c7a7fcc3d488968 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env perl
 
-#   Copyright (C) 1999, 2000, 2001, 2003, 2007 Free Software
-#   Foundation, Inc.
+#   Copyright (C) 1999, 2000, 2001, 2003, 2007, 2009, 2010, 2011 Free
+#   Software Foundation, Inc.
 
 # This file is part of GCC.
 
@@ -23,6 +23,7 @@
 # something suitable for a manpage from a Texinfo document.
 
 use warnings;
+BEGIN { eval { require warnings; } and warnings->import; }
 
 $output = 0;
 $skipping = 0;
@@ -231,7 +232,7 @@ while(<$inf>) {
        $file = postprocess($1);
 
        # Try cwd and $ibase.
-       open($inf, "<" . $file) 
+       open($inf, "<" . $file)
            or open($inf, "<" . $ibase . "/" . $file)
                or die "cannot open $file or $ibase/$file: $!\n";
        next;
@@ -290,7 +291,7 @@ while(<$inf>) {
        if (defined $1) {
             my $thing = $1;
             if ($ic =~ /\@asis/) {
-                $_ = "\n=item $thing\n";
+                $_ = "\n=item C<$thing>\n";
             } else {
                 # Entity escapes prevent munging by the <> processing below.
                 $_ = "\n=item $ic\&LT;$thing\&GT;\n";