[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: t/test_utils.pl output_texi_file(): ooutput a @ch
From: |
Patrice Dumas |
Subject: |
branch master updated: t/test_utils.pl output_texi_file(): ooutput a @chapter too for LaTeX as Top node is ignored in that case. |
Date: |
Wed, 18 Aug 2021 18:27:34 -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 5deb290 t/test_utils.pl output_texi_file(): ooutput a @chapter too
for LaTeX as Top node is ignored in that case.
5deb290 is described below
commit 5deb29098b92c952c206293703ef5cd1af399cb8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Aug 19 00:26:20 2021 +0200
t/test_utils.pl output_texi_file(): ooutput a @chapter too
for LaTeX as Top node is ignored in that case.
---
tp/t/test_utils.pl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index 14545eb..bff80ac 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -1274,6 +1274,12 @@ sub output_texi_file($)
$node_top .= "\@top $test_name\n";
}
}
+ # add a chapter too for LaTeX as Top node is ignored.
+ my $added_chapter = '';
+ unless ($test_text =~ /^\@(chapter|unnumbered|appendix)\s/m
+ or $test_text =~ /^\@(chapter|unnumbered|appendix) *$/m) {
+ $added_chapter = "\@node chapter\n\@chapter chapter\n";
+ }
my $bye = '';
if ($test_text !~ /^\@bye *$/m) {
$bye = '@bye';
@@ -1282,6 +1288,7 @@ sub output_texi_file($)
$setfilename
$node_top
+$added_chapter
$test_text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: t/test_utils.pl output_texi_file(): ooutput a @chapter too for LaTeX as Top node is ignored in that case.,
Patrice Dumas <=