texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Use character_and_spaces_in_refs test in LaTeX


From: Patrice Dumas
Subject: branch master updated: Use character_and_spaces_in_refs test in LaTeX
Date: Tue, 16 Aug 2022 14:03: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 ea5443db99 Use character_and_spaces_in_refs test in LaTeX
ea5443db99 is described below

commit ea5443db993d12031e2089bb04d08d9eb1b7f03c
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Aug 16 20:03:12 2022 +0200

    Use character_and_spaces_in_refs test in LaTeX
---
 tp/t/30sectioning.t                                |  3 +-
 .../sectioning/character_and_spaces_in_refs.pl     | 40 +++++++++++++++++++++-
 2 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/tp/t/30sectioning.t b/tp/t/30sectioning.t
index 4b9a94ee89..1e816ef368 100644
--- a/tp/t/30sectioning.t
+++ b/tp/t/30sectioning.t
@@ -2130,7 +2130,8 @@ my @docbook_tests_info_tests = 
('character_and_spaces_in_refs',
   'section_chapter_before_top_nodes', 'top_node_part_top',
   'top_without_node_sections', 'double_node_anchor_float');
 
-my @latex_tests_info_tests = ('chapter_between_nodes',
+my @latex_tests_info_tests = ('character_and_spaces_in_refs',
+  'chapter_between_nodes',
   'section_before_after_top_node_last_node',
   'section_before_after_top_node',
   'section_chapter_before_top_nodes', 'unnumbered_top_without_node_sections',
diff --git a/tp/t/results/sectioning/character_and_spaces_in_refs.pl 
b/tp/t/results/sectioning/character_and_spaces_in_refs.pl
index c471e04a34..8e27173dc6 100644
--- a/tp/t/results/sectioning/character_and_spaces_in_refs.pl
+++ b/tp/t/results/sectioning/character_and_spaces_in_refs.pl
@@ -8,7 +8,13 @@ use utf8;
 $result_trees{'character_and_spaces_in_refs'} = {
   'contents' => [
     {
-      'contents' => [],
+      'contents' => [
+        {
+          'contents' => [],
+          'parent' => {},
+          'type' => 'preamble_before_content'
+        }
+      ],
       'parent' => {},
       'type' => 'before_node_section'
     },
@@ -1491,6 +1497,7 @@ $result_trees{'character_and_spaces_in_refs'} = {
   ],
   'type' => 'document_root'
 };
+$result_trees{'character_and_spaces_in_refs'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'character_and_spaces_in_refs'}{'contents'}[0];
 $result_trees{'character_and_spaces_in_refs'}{'contents'}[0]{'parent'} = 
$result_trees{'character_and_spaces_in_refs'};
 
$result_trees{'character_and_spaces_in_refs'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'character_and_spaces_in_refs'}{'contents'}[1]{'args'}[0];
 
$result_trees{'character_and_spaces_in_refs'}{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'character_and_spaces_in_refs'}{'contents'}[1];
@@ -2217,4 +2224,35 @@ 
$result_converted{'docbook'}->{'character_and_spaces_in_refs'} = '<anchor id="no
 
 ';
 
+
+$result_converted{'latex'}->{'character_and_spaces_in_refs'} = 
'\\begin{document}
+\\label{anchor:Top}%
+\\label{anchor:node-to-avoid-DocBook-or-LaTeX-Top-ignored}%
+\\GNUTexinfonopagebreakheading{\\subsection*}{{Testing distant nodes}}
+
+Section ``a  node\'\' in \\texttt{manual}
+Section ``:\'\' in \\texttt{manual}
+Section ``top\'\' in \\texttt{manual}
+(texinfo)Cross References
+Section ``node\'\' in \\texttt{../manual/doc}
+
+\\GNUTexinfonopagebreakheading{\\subsection*}{{Testing local nodes}}
+
+\\hyperref[anchor:_0021_005f_0022_0023_0024_0025_0026_0027_0028_0029_002a_002b_002d_002e]{\\chaptername~\\ref*{anchor:_0021_005f_0022_0023_0024_0025_0026_0027_0028_0029_002a_002b_002d_002e}
 [!\\_"\\#\\$\\%\\&\'()*+-.], 
page~\\pageref*{anchor:_0021_005f_0022_0023_0024_0025_0026_0027_0028_0029_002a_002b_002d_002e}}
+\\hyperref[anchor:_002f_003b_003c_003d_003e_003f_005b_005c_005d_005e_005f_0060_007c_007e]{\\chaptername~\\ref*{anchor:_002f_003b_003c_003d_003e_003f_005b_005c_005d_005e_005f_0060_007c_007e}
 [/;<=>?[\\textbackslash{}]\\^{}\\_`|\\~{}], 
page~\\pageref*{anchor:_002f_003b_003c_003d_003e_003f_005b_005c_005d_005e_005f_0060_007c_007e}}
+\\hyperref[anchor:Top]{\\chaptername~\\ref*{anchor:Top} [Top], 
page~\\pageref*{anchor:Top}}
+\\hyperref[anchor:local-node]{\\chaptername~\\ref*{anchor:local-node} [local   
node], page~\\pageref*{anchor:local-node}}
+
+\\chapter{{Chapter with nodes}}
+\\label{anchor:other-nodes}%
+
+
+\\label{anchor:_0021_005f_0022_0023_0024_0025_0026_0027_0028_0029_002a_002b_002d_002e}%
+
+\\label{anchor:_002f_003b_003c_003d_003e_003f_005b_005c_005d_005e_005f_0060_007c_007e}%
+
+\\label{anchor:local-node}%
+
+';
+
 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]