[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * Texinfo/Convert/HTML.pm (output_internal_links)
From: |
Patrice Dumas |
Subject: |
branch master updated: * Texinfo/Convert/HTML.pm (output_internal_links): minor change, remove comment, change variable name |
Date: |
Sat, 04 Sep 2021 16:31: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 30eae4b * Texinfo/Convert/HTML.pm (output_internal_links): minor
change, remove comment, change variable name
30eae4b is described below
commit 30eae4b402aaef95b94ffaf60bf4fdfbbc9ed117
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Sep 4 22:30:28 2021 +0200
* Texinfo/Convert/HTML.pm (output_internal_links): minor change, remove
comment, change variable name
---
tp/Texinfo/Convert/HTML.pm | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 7e886e4..cefbe08 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -7258,21 +7258,16 @@ sub output_internal_links($)
foreach my $letter_entry
(@{$self->{'index_entries_by_letter'}->{$index_name}}) {
foreach my $index_entry (@{$letter_entry->{'entries'}}) {
my $href;
- my $key;
$href = $self->command_href($index_entry->{'command'}, '');
- #$key = $index_entry->{'key'};
- # 'key' is used for sorting, so it may be obtained from
- # @sortas, it may have been modified according to txiindex*ignore,
- # and also use sort_string which may lose some information.
- # Convert to text
+ # Obtain term by converting to text
my $converter_options = {%options};
$converter_options->{'code'} = $index_entry->{'in_code'};
- $key = Texinfo::Convert::Text::convert_to_text(
+ my $index_term = Texinfo::Convert::Text::convert_to_text(
{'contents' => $index_entry->{'content'}}, $converter_options);
- if (defined($key) and $key =~ /\S/) {
+ if (defined($index_term) and $index_term =~ /\S/) {
$out_string .= $href if (defined($href));
$out_string .= "\t$index_name\t";
- $out_string .= $key;
+ $out_string .= $index_term;
$out_string .= "\n";
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * Texinfo/Convert/HTML.pm (output_internal_links): minor change, remove comment, change variable name,
Patrice Dumas <=