[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 29 Sep 2024 10:18:14 -0400 (EDT) |
branch: master
commit 2de001ab03237408080eec8ae93332c1d001d01b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Jul 5 18:04:30 2024 +0200
* tp/Texinfo/Convert/Plaintext.pm (_convert): use parent contents to
get the contents a ref command is in.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/Plaintext.pm | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1202a0528c..141f4011e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-05 Patrice Dumas <pertusus@free.f>
+
+ * tp/Texinfo/Convert/Plaintext.pm (_convert): use parent contents to
+ get the contents a ref command is in.
+
2024-07-05 Patrice Dumas <pertusus@free.f>
* tp/Texinfo/Convert/Plaintext.pm (_convert): remove an obsolete
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 2d695b575d..837e7f5d57 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -2974,7 +2974,7 @@ sub _convert($$)
if ($name) {
# Find next element
my $next;
- my $current_contents = $self->{'current_contents'}->[-1];
+ my $current_contents = $element->{'parent'}->{'contents'};
my $contents_nr = scalar(@$current_contents);
for (my $i = 0; $i < $contents_nr - 1; $i++) {
if ($current_contents->[$i] == $element) {