texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/IXIN.pm (output_ixin), tp/Te


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/IXIN.pm (output_ixin), tp/Texinfo/Convert/TexinfoXML.pm (_set_ignored_type): do not ignore before first node. Remove now unused _set_ignored_type().
Date: Fri, 31 Dec 2021 06:13:49 -0500

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 7827d0a10b * tp/Texinfo/Convert/IXIN.pm (output_ixin), 
tp/Texinfo/Convert/TexinfoXML.pm (_set_ignored_type): do not ignore before 
first node.  Remove now unused _set_ignored_type().
7827d0a10b is described below

commit 7827d0a10b27a2c9678727dc362e275c31275a35
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 31 12:13:39 2021 +0100

    * tp/Texinfo/Convert/IXIN.pm (output_ixin),
    tp/Texinfo/Convert/TexinfoXML.pm (_set_ignored_type):
    do not ignore before first node.  Remove now unused
    _set_ignored_type().
---
 ChangeLog                        | 7 +++++++
 tp/Texinfo/Convert/HTML.pm       | 5 ++---
 tp/Texinfo/Convert/IXIN.pm       | 3 ---
 tp/Texinfo/Convert/TexinfoXML.pm | 9 ---------
 4 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index de4bb3a2cd..19d41821d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/IXIN.pm (output_ixin),
+       tp/Texinfo/Convert/TexinfoXML.pm (_set_ignored_type):
+       do not ignore before first node.  Remove now unused
+       _set_ignored_type().
+
 2021-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Structuring.pm (no_root_command_tree),
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index d160097946..b6c2525205 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -6125,9 +6125,8 @@ sub _set_root_commands_targets_node_files($$)
   if ($tree_units) {
     foreach my $tree_unit (@$tree_units) {
       foreach my $root_command(@{$tree_unit->{'contents'}}) {
-        # this happens for type 'text_root' which precedes the 
-        # root commands.  The target may also already be set for the top node
-        # tree unit.
+        # this happens for types which would precede the root commands.
+        # The target may already be set for the top node tree unit.
         next if (!defined($root_command->{'cmdname'}) 
                  or $self->{'targets'}->{$root_command});
         if ($Texinfo::Common::sectioning_commands{$root_command->{'cmdname'}}) 
{
diff --git a/tp/Texinfo/Convert/IXIN.pm b/tp/Texinfo/Convert/IXIN.pm
index c38e70bc60..7c447fc6cc 100644
--- a/tp/Texinfo/Convert/IXIN.pm
+++ b/tp/Texinfo/Convert/IXIN.pm
@@ -285,9 +285,6 @@ sub output_ixin($$)
     }
   }
 
-  # we ignore everything before the first node
-  $self->_set_ignored_type('text_root');
-
   my $result = $self->ixin_header();
 
   $result .= $self->ixin_open_element('meta');
diff --git a/tp/Texinfo/Convert/TexinfoXML.pm b/tp/Texinfo/Convert/TexinfoXML.pm
index 82e3f8f89c..d3cd2bad3f 100644
--- a/tp/Texinfo/Convert/TexinfoXML.pm
+++ b/tp/Texinfo/Convert/TexinfoXML.pm
@@ -379,15 +379,6 @@ foreach my $type (
   $ignored_types{$type} = 1;
 }
 
-# this is used in IXIN, to ignore everything before first node.
-sub _set_ignored_type($$)
-{
-  my $self = shift;
-  my $type = shift;
-
-  $ignored_types{$type} = 1;
-}
-
 my %type_elements = (
   'paragraph' => 'para',
   'preformatted' => 'pre',



reply via email to

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