[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 8 Nov 2022 03:29:25 -0500 (EST) |
branch: master
commit bbaaf8182178b6b3abf4c166a2416b3c01fe9e20
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Oct 31 17:49:50 2022 +0100
* tp/Texinfo/Convert/HTML.pm: remove 'Top' from %defaults
'special_elements_targets', instead hardcode the empty @top target in
the code.
---
ChangeLog | 6 ++++++
tp/Texinfo/Convert/HTML.pm | 7 +++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e1d79a5e6b..0629bb31e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-31 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm: remove 'Top' from %defaults
+ 'special_elements_targets', instead hardcode the empty @top target in
+ the code.
+
2022-10-31 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/HTML.pm (_load_htmlxref_files): do not
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 335dfbbf98..f72ba8b395 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -1800,7 +1800,6 @@ my %defaults = (
'contents' => 'SEC_Contents',
'footnotes' => 'SEC_Footnotes',
'about' => 'SEC_About',
- 'Top' => 'SEC_Top',
},
'special_elements_file_string' => {
'contents' => '_toc',
@@ -7757,9 +7756,9 @@ sub _new_sectioning_command_target($$)
= $self->normalized_sectioning_command_filename($command);
my $target_base = _normalized_to_id($normalized_name);
- if ($target_base !~ /\S/ and $command->{'cmdname'} eq 'top'
- and defined($self->{'special_elements_targets'}->{'Top'})) {
- $target_base = $self->{'special_elements_targets'}->{'Top'};
+ if ($target_base !~ /\S/ and $command->{'cmdname'} eq 'top') {
+ # @top is allowed to be empty. In that case it gets this target name
+ $target_base = 'SEC_Top';
}
my $nr=1;
my $target = $target_base;
- [no subject], (continued)
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject],
Patrice Dumas <=
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08
- [no subject], Patrice Dumas, 2022/11/08