[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (_convert_printindex
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (_convert_printindex_command): pop document context when there is no output. |
Date: |
Thu, 29 Sep 2022 13:24:14 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new b9fa47d5c4 * tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
pop document context when there is no output.
b9fa47d5c4 is described below
commit b9fa47d5c4bc6cfda0862fcde759a94a97287f5b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Sep 29 19:24:04 2022 +0200
* tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
pop document context when there is no output.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/HTML.pm | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e945e32957..c3d6c21a69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-29 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
+ pop document context when there is no output.
+
2022-09-29 Patrice Dumas <pertusus@free.fr>
Gather @seealso and @seeentry index entries with other entries
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 073d2fe17a..3f107859d4 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -5015,8 +5015,6 @@ sub _convert_printindex_command($$$$)
#}
return '' if ($self->in_string());
- $self->_new_document_context($cmdname);
-
my %letter_id;
my %letter_is_symbol;
# First collect the links that are used in entries and in letter summaries
@@ -5041,6 +5039,8 @@ sub _convert_printindex_command($$$$)
$letter_id{$letter} = $identifier;
}
+ $self->_new_document_context($cmdname);
+
# Next do the entries to determine the letters that are not empty
my @letter_entries;
my $result_index_entries = '';
@@ -5153,6 +5153,7 @@ sub _convert_printindex_command($$$$)
}
if (scalar(@non_alpha) + scalar(@alpha) == 0) {
+ $self->_pop_document_context();
return '';
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (_convert_printindex_command): pop document context when there is no output.,
Patrice Dumas <=