[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/init/chm.pm (_chm_convert_tree_to_text): ren
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/init/chm.pm (_chm_convert_tree_to_text): rename convert_tree() as _chm_convert_tree_to_text(). |
Date: |
Thu, 23 Dec 2021 03:56:07 -0500 |
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 541ee94 * tp/init/chm.pm (_chm_convert_tree_to_text): rename
convert_tree() as _chm_convert_tree_to_text().
541ee94 is described below
commit 541ee941db04134c3f4a124d1633e592752b7d2b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Dec 23 09:55:59 2021 +0100
* tp/init/chm.pm (_chm_convert_tree_to_text): rename
convert_tree() as _chm_convert_tree_to_text().
---
ChangeLog | 7 ++++++-
tp/init/chm.pm | 10 +++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 67dadf7..ed1637f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-23 Patrice Dumas <pertusus@free.fr>
+
+ * tp/init/chm.pm (_chm_convert_tree_to_text): rename
+ convert_tree() as _chm_convert_tree_to_text().
+
2021-12-21 Gavin Smith <gavinsmith0123@gmail.com>
Chapter list for -c CONTENTS_OUTPUT_LOCATION=inline
@@ -30,7 +35,7 @@
tp/Texinfo/Convert/TexinfoXML.pm (output): fix the call of
document_error().
- * tp/Texinfo/Report.pm: correct the orer of arguments in
+ * tp/Texinfo/Report.pm: correct the order of arguments in
document_error() documentation.
2021-12-20 Patrice Dumas <pertusus@free.fr>
diff --git a/tp/init/chm.pm b/tp/init/chm.pm
index 0a67edd..6a6eb25 100644
--- a/tp/init/chm.pm
+++ b/tp/init/chm.pm
@@ -197,7 +197,7 @@ sub chm_noop($$)
return '';
}
-sub convert_tree ($$;$)
+sub _chm_convert_tree_to_text($$;$)
{
my $converter = shift;
my $tree = shift;
@@ -261,7 +261,7 @@ sub chm_init($)
}
my $anchor = $self->command_target($index_entry_ref->{'command'});
my $origin_href = "$file#$anchor";
- my $entry = convert_tree($self,
+ my $entry = _chm_convert_tree_to_text($self,
{'contents' => $index_entry_ref->{'content'}},
{'code' => $index_entry_ref->{'in_code'}});
print $hhk_fh "<LI> <OBJECT type=\"text/sitemap\">\n<param
name=\"Name\" value=\"$entry\">\n<param name=\"Local\"
value=\"$origin_href\">\n</OBJECT> </LI>\n"
@@ -276,7 +276,7 @@ sub chm_init($)
$self->document_error($self,
sprintf(__("chm.pm: error on closing %s: %s"),
$hhk_file, $!));
- return 0;
+ return 0;
}
my $hhc_filename = $document_name . ".hhc";
@@ -330,7 +330,7 @@ sub chm_init($)
$level--;
}
}
- my $text = convert_tree($self, $section->{'args'}->[0]);
+ my $text = _chm_convert_tree_to_text($self, $section->{'args'}->[0]);
$text = Texinfo::Convert::Utils::numbered_heading($self, $section, $text,
$self->get_conf('NUMBER_SECTIONS'));
my $file = $self->command_filename($section);
@@ -372,7 +372,7 @@ sub chm_init($)
if (exists ($chm_languages{$documentlanguage})) {
$language = $chm_languages{$documentlanguage};
}
- my $title = convert_tree($self, $self->{'title_tree'});
+ my $title = _chm_convert_tree_to_text($self, $self->{'title_tree'});
my $top_file = '';
my $top_element = $self->global_element('Top');
if ($top_element and $top_element->{'extra'}->{'unit_command'}) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/init/chm.pm (_chm_convert_tree_to_text): rename convert_tree() as _chm_convert_tree_to_text().,
Patrice Dumas <=