[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <men
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <menu entries>: Correctly include any DEL quoting characters in the count context. |
Date: |
Sun, 31 Dec 2023 17:12:59 -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 f21f712929 * tp/Texinfo/Convert/Plaintext.pm (_convert) <menu
entries>: Correctly include any DEL quoting characters in the count context.
f21f712929 is described below
commit f21f71292965eb43eac82da0b6553bb091009959
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Dec 31 22:11:24 2023 +0000
* tp/Texinfo/Convert/Plaintext.pm (_convert) <menu entries>:
Correctly include any DEL quoting characters in the count context.
---
ChangeLog | 5 ++
tp/Texinfo/Convert/Plaintext.pm | 3 +-
.../formats_encodings/at_commands_in_refs.pl | 54 ++++++++++-----------
.../res_info/at_commands_in_refs_latin1.info | Bin 7999 -> 7999 bytes
.../res_info/at_commands_in_refs_utf8.info | Bin 8396 -> 8396 bytes
.../res_info/colons_in_index_entries_and_node.info | Bin 1572 -> 1572 bytes
.../info_tests/invalid_node_name_no_warning.pl | 6 +--
.../info_tests/invalid_node_name_warning.pl | 6 +--
.../quote_node_names_info/res_info/nodequote.info | 10 ++--
9 files changed, 45 insertions(+), 39 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 857e059e18..bf541c042c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-12-31 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/Convert/Plaintext.pm (_convert) <menu entries>:
+ Correctly include any DEL quoting characters in the count context.
+
2023-12-31 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Unicode.pm (string_width):
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index b747cc8ff0..b15163d877 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -3522,6 +3522,7 @@ sub _convert($$)
}
}
$result .= $pre_quote . $node_text . $post_quote;
+ $self->{'count_context'}->[-1]->{'bytes'} += 2 if $pre_quote;
} elsif ($content->{'type'} eq 'menu_entry_name') {
# Flush output so not to include in name text
$result .= _count_added($self, $formatter->{'container'},
@@ -3548,7 +3549,7 @@ sub _convert($$)
}
}
$result .= $pre_quote . $entry_name . $post_quote;
-
+ $self->{'count_context'}->[-1]->{'bytes'} += 2 if $pre_quote;
# empty description
} elsif ($content->{'type'} eq 'menu_entry_description'
and (not $content->{'contents'}
diff --git a/tp/t/results/formats_encodings/at_commands_in_refs.pl
b/tp/t/results/formats_encodings/at_commands_in_refs.pl
index c41eaef674..acdc828436 100644
--- a/tp/t/results/formats_encodings/at_commands_in_refs.pl
+++ b/tp/t/results/formats_encodings/at_commands_in_refs.pl
@@ -16972,33 +16972,33 @@ File: , Node: <http://somewhere_aaa> text (url) ls,
Prev: _{g}H 3^{rd}, Up: T
Tag Table:
Node: Top27
-Node: { }783
-Node: ! . . ? @862
-Node: @ { } \\ #961
-Node: LaTeX TeX • , © ... ...1080
-Node: ≡ error→ € ¡ ↦ −1230
-Node: ≥ ≤ →1362
-Node: ª º ⋆ £ ⊣ ¿ ®1460
-Node: ⇒ ° a b a sunny day å1579
-Node: Å æ œ Æ Œ ø Ø ß ł Ł Ð ð Þ þ1736
-Node: ä ẽ î â à é ç ē e̊ e̋ ę1915
-Node: ė ĕ e̲ ẹ ě ȷ e͡e2081
-Node: ı Ḕ Ḉ2211
-Node: “ ” ‘ ’ „ ‚2309
-Node: « » « » ‹ ›2414
-Node: `` \'\' --- -- ` \'2530
-Node: AAA (fff) AAA BBB2654
-Node: CCC (rrr) CCC DDD2794
-Node: the someone <someone@somewher> <no_explain@there>2967
-Node: [f--ile1] [image src="f--ile.png" alt="alt" text="Image
description\\"\\"\\\\."