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: Sat, 30 Apr 2011 18:25:58 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/04/30 18:25:58

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

Log message:
        Fix rule output.

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

Patches:
Index: HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- HTML.pm     30 Apr 2011 18:12:26 -0000      1.43
+++ HTML.pm     30 Apr 2011 18:25:57 -0000      1.44
@@ -2107,6 +2107,7 @@
     and $element->{'element_next'}->{'extra'}->{'special_element'});
   my $end_page = (!$element->{'element_next'} 
        or $element->{'parent'} ne $element->{'element_next'}->{'parent'});
+  my $is_special = $element->{'extra'}->{'special_element'};
 
   if (($end_page or $next_is_top or $next_is_special)
        and $self->get_conf('VERTICAL_HEAD_NAVIGATION')) {
@@ -2118,7 +2119,7 @@
   my $rule = '';
   my $buttons;
   my $maybe_in_page;
-  if (($is_top or $element->{'extra'}->{'special_element'})
+  if (($is_top or $is_special)
       and $self->get_conf('SPLIT')
       and ($end_page 
          and ($self->get_conf('HEADERS') 
@@ -2150,14 +2151,15 @@
     $maybe_in_page = 1;
   }
 
-  if ($is_top or $element->{'extra'}->{'special_element'}
-     or $end_page and ($self->get_conf('SPLIT') eq 'chapter'
-                       or $self->get_conf('SPLIT') eq 'section')
+  if ($maybe_in_page or $is_top or $is_special
+     or ($end_page and ($self->get_conf('SPLIT') eq 'chapter'
+                       or $self->get_conf('SPLIT') eq 'section'))
      or $self->get_conf('SPLIT') eq 'node' and $self->get_conf('HEADERS')) {
     $rule = $self->get_conf('DEFAULT_RULE');
   }
       
-  if (!$end_page and ($is_top or $next_is_top or $next_is_special)) {
+  if (!$end_page and ($is_top or $next_is_top or ($next_is_special 
+                                                 and !$is_special))) {
     $rule = $self->get_conf('BIG_RULE');
   }
   if (!$self->get_conf('PROGRAM_NAME_IN_FOOTER') 



reply via email to

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