texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp texi2any.pl


From: Patrice Dumas
Subject: texinfo/tp texi2any.pl
Date: Mon, 07 Nov 2011 20:09:24 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/11/07 20:09:24

Modified files:
        tp             : texi2any.pl 

Log message:
        If --internal-links is passed, always create a file even if empty.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/texi2any.pl?cvsroot=texinfo&r1=1.85&r2=1.86

Patches:
Index: texi2any.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/texi2any.pl,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- texi2any.pl 6 Nov 2011 17:48:54 -0000       1.85
+++ texi2any.pl 7 Nov 2011 20:09:24 -0000       1.86
@@ -1040,10 +1040,8 @@
       and $formats_table{$format}->{'internal_links'}) {
     my $internal_links_text 
       = $converter->output_internal_links();
-    # FIXME(Karl) it is possible to output only if there are links, or always, 
-    # maybe creating an empty file.  Right now it is only output if there
-    # is something to output
-    if (defined($internal_links_text)) {
+    # always create a file, even if empty.
+    $internal_links_text = '' if (!defined($internal_links_text));
       my $internal_links_file = get_conf('INTERNAL_LINKS');
       my $internal_links_fh = Texinfo::Common::open_out($converter, 
                                                $internal_links_file);
@@ -1058,6 +1056,5 @@
            or $error_count > get_conf('ERROR_LIMIT')));
       }
     }
-  }
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]