texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Gavin D. Smith
Date: Wed, 24 Jan 2024 12:09:01 -0500 (EST)

branch: master
commit 3c25f2b54d174069834b0d1f410aa70366ca0360
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Jan 24 17:08:42 2024 +0000

    * tp/Texinfo/Convert/Plaintext.pm (process_printindex)
    <(outside of any node>: Call convert_line_new_context with
    encoding disabled.
---
 ChangeLog                       |  6 ++++++
 tp/Texinfo/Convert/Plaintext.pm | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bbf91eb21d..6f47379593 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-24  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/Convert/Plaintext.pm (process_printindex)
+       <(outside of any node>: Call convert_line_new_context with
+       encoding disabled.
+
 2024-01-24  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/Convert/Plaintext.pm (convert_new_context):
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 757c6d174e..2c7217e715 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -1662,13 +1662,13 @@ sub process_printindex($$;$)
       # cache the transformation to text and byte counting, as
       # it is likely that there is more than one such entry
        if (!$self->{'outside_of_any_node_text'}) {
-          my $node_text = $self->gdt('(outside of any node)');
-          my ($node_text_encoded, $width)
-            = $self->convert_line_new_context($node_text);
-          $self->{'outside_of_any_node_text'} = $node_text_encoded;
+          my $tree = $self->gdt('(outside of any node)');
+          my ($node_text, $width)
+            = $self->convert_line_new_context($tree, undef, 1);
+          $self->{'outside_of_any_node_text'} = $node_text;
           $self->{'outside_of_any_node_text_width'} = $width;
        }
-      _stream_output_encoded($self, $self->{'outside_of_any_node_text'});
+      _stream_output($self, $self->{'outside_of_any_node_text'});
       $line_width += $self->{'outside_of_any_node_text_width'};
 
       # FIXME when outside of sectioning commands this message was already



reply via email to

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