texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/init/book.pm (book_convert_heading_command):


From: Patrice Dumas
Subject: branch master updated: * tp/init/book.pm (book_convert_heading_command): sync with HTML.pm.
Date: Fri, 06 Sep 2024 02:15:09 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new f2cf7d434f * tp/init/book.pm (book_convert_heading_command): sync with 
HTML.pm.
f2cf7d434f is described below

commit f2cf7d434f627b7a0a91ed403af4c36a21e4ebee
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Sep 6 08:15:05 2024 +0200

    * tp/init/book.pm (book_convert_heading_command): sync with HTML.pm.
---
 ChangeLog       |  4 ++++
 tp/init/book.pm | 20 --------------------
 2 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c342c1c6e3..662c73b53e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-09-05  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/init/book.pm (book_convert_heading_command): sync with HTML.pm.
+
 2024-09-05  Patrice Dumas  <pertusus@free.fr>
 
        * doc/texi2any_api.texi (Heading Commands Formatting),
diff --git a/tp/init/book.pm b/tp/init/book.pm
index c2d0da4911..e84ba60e56 100644
--- a/tp/init/book.pm
+++ b/tp/init/book.pm
@@ -253,26 +253,6 @@ sub book_convert_heading_command($$$$$)
     my $in_skipped_node_top
       = $self->get_shared_conversion_state('top', 'in_skipped_node_top');
     $in_skipped_node_top = 0 if (!defined($in_skipped_node_top));
-    my $node_element;
-    if ($cmdname eq 'node') {
-      $node_element = $element;
-    } elsif ($cmdname eq 'part' and $element->{'extra'}
-             and $element->{'extra'}->{'part_following_node'}) {
-      $node_element = $element->{'extra'}->{'part_following_node'};
-    }
-    if ($node_element or $cmdname eq 'part') {
-      if ($node_element and $node_element->{'extra'}
-          and $node_element->{'extra'}->{'normalized'}
-          and $node_element->{'extra'}->{'normalized'} eq 'Top') {
-        $in_skipped_node_top = 1;
-        $self->set_shared_conversion_state('top', 'in_skipped_node_top',
-                                           $in_skipped_node_top);
-      } elsif ($in_skipped_node_top == 1) {
-        $in_skipped_node_top = -1;
-        $self->set_shared_conversion_state('top', 'in_skipped_node_top',
-                                           $in_skipped_node_top);
-      }
-    }
     if ($in_skipped_node_top == 1) {
       my $id_class = $cmdname;
       $result .= &{$self->formatting_function('format_separate_anchor')}($self,



reply via email to

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