texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Sun, 29 Sep 2024 13:55:48 -0400 (EDT)

branch: master
commit 5e5d2384cbf19b4939163d08e0c52dc480979bee
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jul 6 07:56:04 2024 +0200

    * tp/Texinfo/Convert/Plaintext.pm (_convert): ignore space types only
    when checking if an index command is last in node, as the ignored
    special containers cannot happen in that situation.  Remove
    %ignorable_types.
---
 ChangeLog                       | 7 +++++++
 tp/Texinfo/Convert/Plaintext.pm | 7 +------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7a3cc5e2b5..f4ed4cbdae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-07-06  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/Plaintext.pm (_convert): ignore space types only
+       when checking if an index command is last in node, as the ignored
+       special containers cannot happen in that situation.  Remove
+       %ignorable_types.
+
 2024-07-06  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/Plaintext.pm (_convert, converter_initialize):
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 8e17269e7b..20d5d8b6e5 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -294,11 +294,6 @@ foreach my $type ('postamble_after_end',
   $ignored_types{$type} = 1;
 }
 
-my %ignorable_types = %ignorable_space_types;
-foreach my $ignored_type(keys(%ignored_types)) {
-  $ignorable_types{$ignored_type} = 1;
-}
-
 # All those commands run with the text.
 my %style_map = (
   'strong' => '*',
@@ -2536,7 +2531,7 @@ sub _convert($$)
 
           unless (($following_content->{'type'}
                    and ($following_content->{'type'} eq 'empty_line'
-                        or $ignorable_types{$following_content->{'type'}}))
+                        or 
$ignorable_space_types{$following_content->{'type'}}))
                   or ($following_content->{'cmdname'}
                       and ($following_content->{'cmdname'} eq 'c'
                            or $following_content->{'cmdname'} eq 'comment'))) {



reply via email to

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