[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <@it
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <@item in @enumerate/@itemize>: Use Texinfo::Convert::Paragraph::counter rather than Texinfo::Convert::Unicode::string_width. |
Date: |
Thu, 21 Dec 2023 14:51:22 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 39b90e4bfa * tp/Texinfo/Convert/Plaintext.pm (_convert) <@item in
@enumerate/@itemize>: Use Texinfo::Convert::Paragraph::counter rather than
Texinfo::Convert::Unicode::string_width.
39b90e4bfa is described below
commit 39b90e4bfa1145dbeed574478a75500f2ffe93c9
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Dec 21 19:51:15 2023 +0000
* tp/Texinfo/Convert/Plaintext.pm (_convert)
<@item in @enumerate/@itemize>:
Use Texinfo::Convert::Paragraph::counter rather than
Texinfo::Convert::Unicode::string_width.
---
ChangeLog | 7 +++++++
tp/Texinfo/Convert/Plaintext.pm | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bed81dda0a..0c0c479efd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-12-21 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/Convert/Plaintext.pm (_convert)
+ <@item in @enumerate/@itemize>:
+ Use Texinfo::Convert::Paragraph::counter rather than
+ Texinfo::Convert::Unicode::string_width.
+
2023-12-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl (convert_to_plaintext): If not outputting to
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 904a85e6c7..51801283a3 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -2864,9 +2864,9 @@ sub _convert($$)
}
$result .= _count_added($self, $line->{'container'},
Texinfo::Convert::Paragraph::end($line->{'container'}));
- pop @{$self->{'formatters'}};
$self->{'text_element_context'}->[-1]->{'counter'} +=
- Texinfo::Convert::Unicode::string_width($result);
+ Texinfo::Convert::Paragraph::counter($line->{'container'});
+ pop @{$self->{'formatters'}};
$self->{'empty_lines_count'} = 0 unless ($result eq '');
# open a multitable cell
} elsif ($command eq 'headitem' or $command eq 'item'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <@item in @enumerate/@itemize>: Use Texinfo::Convert::Paragraph::counter rather than Texinfo::Convert::Unicode::string_width.,
Gavin D. Smith <=