texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp/Texinfo/Convert HTML.pm


From: Patrice Dumas
Subject: texinfo/tp/Texinfo/Convert HTML.pm
Date: Sun, 08 Jan 2012 20:30:09 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/01/08 20:30:09

Modified files:
        tp/Texinfo/Convert: HTML.pm 

Log message:
        Associate unassociated special elements pages to the first elements 
pages
        only if it is defined.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/HTML.pm?cvsroot=texinfo&r1=1.223&r2=1.224

Patches:
Index: HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -b -r1.223 -r1.224
--- HTML.pm     7 Jan 2012 19:25:03 -0000       1.223
+++ HTML.pm     8 Jan 2012 20:30:09 -0000       1.224
@@ -6628,7 +6628,9 @@
 
   # associate the special elements that have no page to the main page.
   # This may only happen if not split.
-  if ($special_elements) {
+  if ($special_elements 
+      and $elements and $elements->[0] 
+      and defined($elements->[0]->{'filename'})) {
     foreach my $special_element (@$special_elements) {
       if (!defined($special_element->{'filename'})) {
         $special_element->{'filename'} = $elements->[0]->{'filename'};



reply via email to

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