texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/t/formats_encodings.t: change tests to be mo


From: Patrice Dumas
Subject: branch master updated: * tp/t/formats_encodings.t: change tests to be more useful for LaTeX by renaming a node.
Date: Wed, 15 Feb 2023 14:07:42 -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 7b7521b762 * tp/t/formats_encodings.t: change tests to be more useful 
for LaTeX by renaming a node.
7b7521b762 is described below

commit 7b7521b76234367c1612846ca82e5865178e71a8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Feb 15 20:07:27 2023 +0100

    * tp/t/formats_encodings.t: change tests to be more useful for LaTeX by
    renaming a node.
    
    * tp/t/html_tests.t: add some chapters for tests to look more like
    actual manuals..
---
 ChangeLog                                          |   8 +
 tp/t/formats_encodings.t                           |   2 +-
 tp/t/html_tests.t                                  |  12 +-
 tp/t/results/formats_encodings/accent.pl           |  22 +--
 .../formats_encodings/accent_enable_encoding.pl    |  22 +--
 tp/t/results/formats_encodings/accentenc.pl        |  22 +--
 .../formats_encodings/accentenc_enable_encoding.pl |  16 +-
 .../deftypefnnewline_for_copying_after.pl          | 183 +++++++++++++++++++--
 .../deftypefnnewline_for_copying_before.pl         | 183 +++++++++++++++++++--
 tp/t/results/html_tests/ref_in_preformatted.pl     |  34 ++--
 10 files changed, 414 insertions(+), 90 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1b8a6043b7..84019c4ca7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-02-15  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/t/formats_encodings.t: change tests to be more useful for LaTeX by
+       renaming a node.
+
+       * tp/t/html_tests.t: add some chapters for tests to look more like
+       actual manuals..
+
 2023-02-15  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/parsetexi/separator.c (handle_close_brace):
diff --git a/tp/t/formats_encodings.t b/tp/t/formats_encodings.t
index c12d111dfd..4e0b129d22 100644
--- a/tp/t/formats_encodings.t
+++ b/tp/t/formats_encodings.t
@@ -6,7 +6,7 @@ use Texinfo::ModulePath (undef, undef, undef, 'updirs' => 2);
 require 't/test_utils.pl';
 
 # do not use @node Top as it is ignored in LaTeX output
-my $accents_text = '@node Top node
+my $accents_text = '@node first
 @top top
 
 should be e`: @`{e} @`e
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index d33b789e68..04b1131616 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -471,6 +471,9 @@ BODY-OF-DESCRIPTION
 @node Top
 @top top
 
+@node chap
+@chapter Chapter
+
 @deftypefun void something input
 do something with input
 @end deftypefun
@@ -489,6 +492,9 @@ BODY-OF-DESCRIPTION
 @node Top
 @top top
 
+@node chap
+@chapter Chapter
+
 @deftypefun void something input
 do something with input
 @end deftypefun
@@ -659,15 +665,15 @@ AA @^e --- -- \'` \'\' ``', {'ENABLE_ENCODING' => 1}, 
{'OUTPUT_CHARACTERS' => 1,
 '@node Top
 
 @menu
-* nnn the node name::
+* chap nnn the node name::
 @end menu
 
 @example
-Now @ref{nnn the
+Now @ref{chap nnn the
 node name}
 @end example
 
-@node nnn the node name
+@node chap nnn the node name
 '],
 ['mathjax_with_texinfo_html_text',
 $mathjax_with_texinfo, {}, {'HTML_MATH' => 'mathjax'}],
diff --git a/tp/t/results/formats_encodings/accent.pl 
b/tp/t/results/formats_encodings/accent.pl
index b76f656d0d..1591c1415f 100644
--- a/tp/t/results/formats_encodings/accent.pl
+++ b/tp/t/results/formats_encodings/accent.pl
@@ -21,7 +21,7 @@ $result_trees{'accent'} = {
         {
           'contents' => [
             {
-              'text' => 'Top node'
+              'text' => 'first'
             }
           ],
           'info' => {
@@ -43,10 +43,10 @@ $result_trees{'accent'} = {
             'node_content' => [
               {}
             ],
-            'normalized' => 'Top-node'
+            'normalized' => 'first'
           }
         ],
-        'normalized' => 'Top-node'
+        'normalized' => 'first'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -2110,7 +2110,7 @@ $result_trees{'accent'} = {
 $result_trees{'accent'}{'contents'}[1]{'extra'}{'node_content'}[0] = 
$result_trees{'accent'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
$result_trees{'accent'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = $result_trees{'accent'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
-$result_texis{'accent'} = '@node Top node
+$result_texis{'accent'} = '@node first
 @top top
 
 should be e`: @`{e} @`e
@@ -2278,7 +2278,7 @@ $result_sectioning{'accent'} = {
           'associated_node' => {
             'cmdname' => 'node',
             'extra' => {
-              'normalized' => 'Top-node'
+              'normalized' => 'first'
             },
             'info' => {}
           }
@@ -2304,7 +2304,7 @@ $result_nodes{'accent'} = {
       'info' => {},
       'structure' => {}
     },
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2312,7 +2312,7 @@ $result_nodes{'accent'} = {
 $result_menus{'accent'} = {
   'cmdname' => 'node',
   'extra' => {
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2403,7 +2403,7 @@ should be e‘: è è
 ';
 
 
-$result_converted{'html_text'}->{'accent'} = '<div class="top-level-extent" 
id="Top-node">
+$result_converted{'html_text'}->{'accent'} = '<div class="top-level-extent" 
id="first">
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
 <p>should be e&lsquo;: &egrave; &egrave;
@@ -2483,7 +2483,7 @@ $result_converted{'html_text'}->{'accent'} = '<div 
class="top-level-extent" id="
 ';
 
 
-$result_converted{'xml'}->{'accent'} = '<node name="Top-node" spaces=" 
"><nodename>Top node</nodename></node>
+$result_converted{'xml'}->{'accent'} = '<node name="first" spaces=" 
"><nodename>first</nodename></node>
 <top spaces=" "><sectiontitle>top</sectiontitle>
 
 <para>should be e&textlsquo;: <accent type="grave">e</accent> <accent 
type="grave" bracketed="off">e</accent>
@@ -2565,7 +2565,7 @@ $result_converted{'xml'}->{'accent'} = '<node 
name="Top-node" spaces=" "><nodena
 ';
 
 
-$result_converted{'docbook'}->{'accent'} = '<chapter label="" id="Top-node">
+$result_converted{'docbook'}->{'accent'} = '<chapter label="" id="first">
 <title>top</title>
 
 <para>should be e&#8216;: &#232; &#232;
@@ -2649,7 +2649,7 @@ $result_converted{'docbook'}->{'accent'} = '<chapter 
label="" id="Top-node">
 
 $result_converted{'latex_text'}->{'accent'} = '\\begin{document}
 \\part*{{top}}
-\\label{anchor:Top-node}%
+\\label{anchor:first}%
 
 should be e`: \\`{e} \\`{e}
 
diff --git a/tp/t/results/formats_encodings/accent_enable_encoding.pl 
b/tp/t/results/formats_encodings/accent_enable_encoding.pl
index 54239d6410..d287c43b6c 100644
--- a/tp/t/results/formats_encodings/accent_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accent_enable_encoding.pl
@@ -21,7 +21,7 @@ $result_trees{'accent_enable_encoding'} = {
         {
           'contents' => [
             {
-              'text' => 'Top node'
+              'text' => 'first'
             }
           ],
           'info' => {
@@ -43,10 +43,10 @@ $result_trees{'accent_enable_encoding'} = {
             'node_content' => [
               {}
             ],
-            'normalized' => 'Top-node'
+            'normalized' => 'first'
           }
         ],
-        'normalized' => 'Top-node'
+        'normalized' => 'first'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -2110,7 +2110,7 @@ $result_trees{'accent_enable_encoding'} = {
 
$result_trees{'accent_enable_encoding'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'accent_enable_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
$result_trees{'accent_enable_encoding'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'accent_enable_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
-$result_texis{'accent_enable_encoding'} = '@node Top node
+$result_texis{'accent_enable_encoding'} = '@node first
 @top top
 
 should be e`: @`{e} @`e
@@ -2278,7 +2278,7 @@ $result_sectioning{'accent_enable_encoding'} = {
           'associated_node' => {
             'cmdname' => 'node',
             'extra' => {
-              'normalized' => 'Top-node'
+              'normalized' => 'first'
             },
             'info' => {}
           }
@@ -2304,7 +2304,7 @@ $result_nodes{'accent_enable_encoding'} = {
       'info' => {},
       'structure' => {}
     },
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2312,7 +2312,7 @@ $result_nodes{'accent_enable_encoding'} = {
 $result_menus{'accent_enable_encoding'} = {
   'cmdname' => 'node',
   'extra' => {
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2403,7 +2403,7 @@ should be e‘: è è
 ';
 
 
-$result_converted{'html_text'}->{'accent_enable_encoding'} = '<div 
class="top-level-extent" id="Top-node">
+$result_converted{'html_text'}->{'accent_enable_encoding'} = '<div 
class="top-level-extent" id="first">
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
¶</a></span></h1>
 
 <p>should be e‘: è è
@@ -2483,7 +2483,7 @@ 
$result_converted{'html_text'}->{'accent_enable_encoding'} = '<div class="top-le
 ';
 
 
-$result_converted{'xml'}->{'accent_enable_encoding'} = '<node name="Top-node" 
spaces=" "><nodename>Top node</nodename></node>
+$result_converted{'xml'}->{'accent_enable_encoding'} = '<node name="first" 
spaces=" "><nodename>first</nodename></node>
 <top spaces=" "><sectiontitle>top</sectiontitle>
 
 <para>should be e&textlsquo;: è è
@@ -2565,7 +2565,7 @@ $result_converted{'xml'}->{'accent_enable_encoding'} = 
'<node name="Top-node" sp
 ';
 
 
-$result_converted{'docbook'}->{'accent_enable_encoding'} = '<chapter label="" 
id="Top-node">
+$result_converted{'docbook'}->{'accent_enable_encoding'} = '<chapter label="" 
id="first">
 <title>top</title>
 
 <para>should be e&#8216;: è è
@@ -2649,7 +2649,7 @@ $result_converted{'docbook'}->{'accent_enable_encoding'} 
= '<chapter label="" id
 
 $result_converted{'latex_text'}->{'accent_enable_encoding'} = 
'\\begin{document}
 \\part*{{top}}
-\\label{anchor:Top-node}%
+\\label{anchor:first}%
 
 should be e`: è è
 
diff --git a/tp/t/results/formats_encodings/accentenc.pl 
b/tp/t/results/formats_encodings/accentenc.pl
index 47057ae517..779805d544 100644
--- a/tp/t/results/formats_encodings/accentenc.pl
+++ b/tp/t/results/formats_encodings/accentenc.pl
@@ -61,7 +61,7 @@ $result_trees{'accentenc'} = {
         {
           'contents' => [
             {
-              'text' => 'Top node'
+              'text' => 'first'
             }
           ],
           'info' => {
@@ -83,10 +83,10 @@ $result_trees{'accentenc'} = {
             'node_content' => [
               {}
             ],
-            'normalized' => 'Top-node'
+            'normalized' => 'first'
           }
         ],
-        'normalized' => 'Top-node'
+        'normalized' => 'first'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -2152,7 +2152,7 @@ 
$result_trees{'accentenc'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_con
 
 $result_texis{'accentenc'} = '@documentencoding ISO-8859-1
 
-@node Top node
+@node first
 @top top
 
 should be e`: @`{e} @`e
@@ -2321,7 +2321,7 @@ $result_sectioning{'accentenc'} = {
           'associated_node' => {
             'cmdname' => 'node',
             'extra' => {
-              'normalized' => 'Top-node'
+              'normalized' => 'first'
             },
             'info' => {}
           }
@@ -2347,7 +2347,7 @@ $result_nodes{'accentenc'} = {
       'info' => {},
       'structure' => {}
     },
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2355,7 +2355,7 @@ $result_nodes{'accentenc'} = {
 $result_menus{'accentenc'} = {
   'cmdname' => 'node',
   'extra' => {
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2447,7 +2447,7 @@ should be e\': è è
 
 
 $result_converted{'html_text'}->{'accentenc'} = '
-<div class="top-level-extent" id="Top-node">
+<div class="top-level-extent" id="first">
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
 <p>should be e&lsquo;: &egrave; &egrave;
@@ -2529,7 +2529,7 @@ $result_converted{'html_text'}->{'accentenc'} = '
 
 $result_converted{'xml'}->{'accentenc'} = '<documentencoding 
encoding="ISO-8859-1" spaces=" ">ISO-8859-1</documentencoding>
 
-<node name="Top-node" spaces=" "><nodename>Top node</nodename></node>
+<node name="first" spaces=" "><nodename>first</nodename></node>
 <top spaces=" "><sectiontitle>top</sectiontitle>
 
 <para>should be e&textlsquo;: <accent type="grave">e</accent> <accent 
type="grave" bracketed="off">e</accent>
@@ -2611,7 +2611,7 @@ $result_converted{'xml'}->{'accentenc'} = 
'<documentencoding encoding="ISO-8859-
 ';
 
 
-$result_converted{'docbook'}->{'accentenc'} = '<chapter label="" id="Top-node">
+$result_converted{'docbook'}->{'accentenc'} = '<chapter label="" id="first">
 <title>top</title>
 
 <para>should be e&#8216;: &#232; &#232;
@@ -2696,7 +2696,7 @@ $result_converted{'docbook'}->{'accentenc'} = '<chapter 
label="" id="Top-node">
 $result_converted{'latex_text'}->{'accentenc'} = '
 \\begin{document}
 \\part*{{top}}
-\\label{anchor:Top-node}%
+\\label{anchor:first}%
 
 should be e`: \\`{e} \\`{e}
 
diff --git a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl 
b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
index 1304516e3d..7691d57bd2 100644
--- a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
@@ -56,7 +56,7 @@ $result_trees{'accentenc_enable_encoding'} = {
         {
           'contents' => [
             {
-              'text' => 'Top node'
+              'text' => 'first'
             }
           ],
           'info' => {
@@ -78,10 +78,10 @@ $result_trees{'accentenc_enable_encoding'} = {
             'node_content' => [
               {}
             ],
-            'normalized' => 'Top-node'
+            'normalized' => 'first'
           }
         ],
-        'normalized' => 'Top-node'
+        'normalized' => 'first'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -2147,7 +2147,7 @@ 
$result_trees{'accentenc_enable_encoding'}{'contents'}[1]{'extra'}{'nodes_manual
 
 $result_texis{'accentenc_enable_encoding'} = '@documentencoding ISO-8859-1
 
-@node Top node
+@node first
 @top top
 
 should be e`: @`{e} @`e
@@ -2316,7 +2316,7 @@ $result_sectioning{'accentenc_enable_encoding'} = {
           'associated_node' => {
             'cmdname' => 'node',
             'extra' => {
-              'normalized' => 'Top-node'
+              'normalized' => 'first'
             },
             'info' => {}
           }
@@ -2342,7 +2342,7 @@ $result_nodes{'accentenc_enable_encoding'} = {
       'info' => {},
       'structure' => {}
     },
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2350,7 +2350,7 @@ $result_nodes{'accentenc_enable_encoding'} = {
 $result_menus{'accentenc_enable_encoding'} = {
   'cmdname' => 'node',
   'extra' => {
-    'normalized' => 'Top-node'
+    'normalized' => 'first'
   },
   'info' => {}
 };
@@ -2363,7 +2363,7 @@ $result_floats{'accentenc_enable_encoding'} = {};
 
 
 $result_converted{'html_text'}->{'accentenc_enable_encoding'} = '
-<div class="top-level-extent" id="Top-node">
+<div class="top-level-extent" id="first">
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
¶</a></span></h1>
 
 <p>should be e&lsquo;: è è
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
index 174234f2ff..9c79533122 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
@@ -370,6 +370,86 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
       'contents' => [
         {
           'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 14,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chap'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chap'
+          }
+        ],
+        'normalized' => 'chap'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 16,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
 ',
           'type' => 'empty_line'
         },
@@ -467,7 +547,7 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
               },
               'source_info' => {
                 'file_name' => '',
-                'line_nr' => 16,
+                'line_nr' => 19,
                 'macro' => ''
               },
               'type' => 'def_line'
@@ -514,7 +594,7 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
               },
               'source_info' => {
                 'file_name' => '',
-                'line_nr' => 18,
+                'line_nr' => 21,
                 'macro' => ''
               }
             }
@@ -526,7 +606,7 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 16,
+            'line_nr' => 19,
             'macro' => ''
           }
         },
@@ -544,7 +624,7 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 14,
+        'line_nr' => 17,
         'macro' => ''
       }
     }
@@ -559,13 +639,15 @@ 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[0]{'contents'}[0
 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'contents'}[0];
 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'type'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
 = $result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[1];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'type'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
 = $result_trees{'deftypefnnewline_for_copying_after'}{'contents'}[3];
 
 $result_texis{'deftypefnnewline_for_copying_after'} = '@copying
 @deftypefun TYPE NAME ARGUMENTS...
@@ -582,6 +664,9 @@ BODY-OF-DESCRIPTION
 @node Top
 @top top
 
+@node chap
+@chapter Chapter
+
 @deftypefun void something input
 do something with input
 @end deftypefun
@@ -596,6 +681,9 @@ $result_texts{'deftypefnnewline_for_copying_after'} = '
 top
 ***
 
+1 Chapter
+*********
+
 Function: void something input
 do something with input
 
@@ -612,11 +700,35 @@ $result_sectioning{'deftypefnnewline_for_copying_after'} 
= {
             'extra' => {
               'normalized' => 'Top'
             },
-            'info' => {}
+            'info' => {},
+            'structure' => {}
           }
         },
         'info' => {},
         'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chap'
+                  },
+                  'info' => {},
+                  'structure' => {}
+                }
+              },
+              'info' => {},
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
           'section_level' => 0,
           'section_up' => {}
         }
@@ -625,6 +737,9 @@ $result_sectioning{'deftypefnnewline_for_copying_after'} = {
     'section_level' => -1
   }
 };
+$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0];
 
$result_sectioning{'deftypefnnewline_for_copying_after'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'deftypefnnewline_for_copying_after'};
 
 $result_nodes{'deftypefnnewline_for_copying_after'} = {
@@ -638,15 +753,39 @@ $result_nodes{'deftypefnnewline_for_copying_after'} = {
     },
     'normalized' => 'Top'
   },
-  'info' => {}
+  'info' => {},
+  'structure' => {
+    'node_next' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'info' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'normalized' => 'chap'
+      },
+      'info' => {},
+      'structure' => {
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    }
+  }
 };
+$result_nodes{'deftypefnnewline_for_copying_after'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = $result_nodes{'deftypefnnewline_for_copying_after'};
+$result_nodes{'deftypefnnewline_for_copying_after'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'deftypefnnewline_for_copying_after'};
 
 $result_menus{'deftypefnnewline_for_copying_after'} = {
   'cmdname' => 'node',
   'extra' => {
     'normalized' => 'Top'
   },
-  'info' => {}
+  'info' => {},
+  'structure' => {}
 };
 
 $result_errors{'deftypefnnewline_for_copying_after'} = [];
@@ -705,14 +844,30 @@ strong.def-name {font-family: monospace; font-weight: 
bold; font-size: larger}
 </p></dd></dl>
 
 <div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chap" accesskey="n" rel="next">Chapter</a> &nbsp; </p>
+</div>
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
+<ul class="mini-toc">
+<li><a href="#chap" accesskey="1">Chapter</a></li>
+</ul>
+<hr>
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">top</a>, Up: <a href="#Top" 
accesskey="u" rel="up">top</a> &nbsp; </p>
+</div>
+<h2 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link" 
href="#Chapter"> &para;</a></span></h2>
+
 <dl class="first-deftypefn first-deftypefun-alias-first-deftypefn">
 <dt class="deftypefn deftypefun-alias-deftypefn" id="index-something"><span 
class="category-def">Function:<br> </span><span><code 
class="def-type">void</code><br> <strong class="def-name">something</strong> 
<code class="def-code-arguments">input</code><a class="copiable-link" 
href="#index-something"> &para;</a></span></dt>
 <dd><p>do something with input
 </p></dd></dl>
 
 </div>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
index 8e53cb7cca..6c9bdcab6e 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
@@ -335,6 +335,86 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
       'contents' => [
         {
           'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chap'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chap'
+          }
+        ],
+        'normalized' => 'chap'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
 ',
           'type' => 'empty_line'
         },
@@ -432,7 +512,7 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
               },
               'source_info' => {
                 'file_name' => '',
-                'line_nr' => 13,
+                'line_nr' => 16,
                 'macro' => ''
               },
               'type' => 'def_line'
@@ -479,7 +559,7 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
               },
               'source_info' => {
                 'file_name' => '',
-                'line_nr' => 15,
+                'line_nr' => 18,
                 'macro' => ''
               }
             }
@@ -491,7 +571,7 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 13,
+            'line_nr' => 16,
             'macro' => ''
           }
         },
@@ -509,7 +589,7 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 11,
+        'line_nr' => 14,
         'macro' => ''
       }
     }
@@ -524,13 +604,15 @@ 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[0]{'contents'}[
 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[0];
 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[1]{'args'}[0]{'contents'}[0];
 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'type'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0];
-$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
 = $result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[1];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'type'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}[0]
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
 = 
$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0];
+$result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
 = $result_trees{'deftypefnnewline_for_copying_before'}{'contents'}[3];
 
 $result_texis{'deftypefnnewline_for_copying_before'} = '
 @deftypefnnewline on
@@ -544,6 +626,9 @@ BODY-OF-DESCRIPTION
 @node Top
 @top top
 
+@node chap
+@chapter Chapter
+
 @deftypefun void something input
 do something with input
 @end deftypefun
@@ -557,6 +642,9 @@ $result_texts{'deftypefnnewline_for_copying_before'} = '
 top
 ***
 
+1 Chapter
+*********
+
 Function: void something input
 do something with input
 
@@ -573,11 +661,35 @@ $result_sectioning{'deftypefnnewline_for_copying_before'} 
= {
             'extra' => {
               'normalized' => 'Top'
             },
-            'info' => {}
+            'info' => {},
+            'structure' => {}
           }
         },
         'info' => {},
         'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chap'
+                  },
+                  'info' => {},
+                  'structure' => {}
+                }
+              },
+              'info' => {},
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
           'section_level' => 0,
           'section_up' => {}
         }
@@ -586,6 +698,9 @@ $result_sectioning{'deftypefnnewline_for_copying_before'} = 
{
     'section_level' => -1
   }
 };
+$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0];
 
$result_sectioning{'deftypefnnewline_for_copying_before'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'deftypefnnewline_for_copying_before'};
 
 $result_nodes{'deftypefnnewline_for_copying_before'} = {
@@ -599,15 +714,39 @@ $result_nodes{'deftypefnnewline_for_copying_before'} = {
     },
     'normalized' => 'Top'
   },
-  'info' => {}
+  'info' => {},
+  'structure' => {
+    'node_next' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'info' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'normalized' => 'chap'
+      },
+      'info' => {},
+      'structure' => {
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    }
+  }
 };
+$result_nodes{'deftypefnnewline_for_copying_before'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = $result_nodes{'deftypefnnewline_for_copying_before'};
+$result_nodes{'deftypefnnewline_for_copying_before'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'deftypefnnewline_for_copying_before'};
 
 $result_menus{'deftypefnnewline_for_copying_before'} = {
   'cmdname' => 'node',
   'extra' => {
     'normalized' => 'Top'
   },
-  'info' => {}
+  'info' => {},
+  'structure' => {}
 };
 
 $result_errors{'deftypefnnewline_for_copying_before'} = [];
@@ -657,14 +796,30 @@ strong.def-name {font-family: monospace; font-weight: 
bold; font-size: larger}
 
 
 <div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chap" accesskey="n" rel="next">Chapter</a> &nbsp; </p>
+</div>
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
+<ul class="mini-toc">
+<li><a href="#chap" accesskey="1">Chapter</a></li>
+</ul>
+<hr>
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">top</a>, Up: <a href="#Top" 
accesskey="u" rel="up">top</a> &nbsp; </p>
+</div>
+<h2 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link" 
href="#Chapter"> &para;</a></span></h2>
+
 <dl class="first-deftypefn first-deftypefun-alias-first-deftypefn">
 <dt class="deftypefn deftypefun-alias-deftypefn" id="index-something"><span 
class="category-def">Function:<br> </span><span><code 
class="def-type">void</code><br> <strong class="def-name">something</strong> 
<code class="def-code-arguments">input</code><a class="copiable-link" 
href="#index-something"> &para;</a></span></dt>
 <dd><p>do something with input
 </p></dd></dl>
 
 </div>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/ref_in_preformatted.pl 
b/tp/t/results/html_tests/ref_in_preformatted.pl
index 257f2f85f0..44a60fafc0 100644
--- a/tp/t/results/html_tests/ref_in_preformatted.pl
+++ b/tp/t/results/html_tests/ref_in_preformatted.pl
@@ -57,7 +57,7 @@ $result_trees{'ref_in_preformatted'} = {
                 {
                   'contents' => [
                     {
-                      'text' => 'nnn the node name'
+                      'text' => 'chap nnn the node name'
                     }
                   ],
                   'type' => 'menu_entry_node'
@@ -86,7 +86,7 @@ $result_trees{'ref_in_preformatted'} = {
                   'node_content' => [
                     {}
                   ],
-                  'normalized' => 'nnn-the-node-name'
+                  'normalized' => 'chap-nnn-the-node-name'
                 }
               },
               'source_info' => {
@@ -164,7 +164,7 @@ $result_trees{'ref_in_preformatted'} = {
                     {
                       'contents' => [
                         {
-                          'text' => 'nnn the
+                          'text' => 'chap nnn the
 '
                         },
                         {
@@ -181,7 +181,7 @@ $result_trees{'ref_in_preformatted'} = {
                         {
                           'contents' => [
                             {
-                              'text' => 'nnn the node name'
+                              'text' => 'chap nnn the node name'
                             }
                           ],
                           'info' => {
@@ -203,10 +203,10 @@ $result_trees{'ref_in_preformatted'} = {
                             'node_content' => [
                               {}
                             ],
-                            'normalized' => 'nnn-the-node-name'
+                            'normalized' => 'chap-nnn-the-node-name'
                           }
                         ],
-                        'normalized' => 'nnn-the-node-name'
+                        'normalized' => 'chap-nnn-the-node-name'
                       },
                       'info' => {
                         'spaces_before_argument' => {
@@ -224,7 +224,7 @@ $result_trees{'ref_in_preformatted'} = {
                         {},
                         {}
                       ],
-                      'normalized' => 'nnn-the-node-name'
+                      'normalized' => 'chap-nnn-the-node-name'
                     }
                   },
                   'source_info' => {
@@ -326,22 +326,22 @@ $result_trees{'ref_in_preformatted'}{'contents'}[2] = 
$result_trees{'ref_in_pref
 $result_texis{'ref_in_preformatted'} = '@node Top
 
 @menu
-* nnn the node name::
+* chap nnn the node name::
 @end menu
 
 @example
-Now @ref{nnn the
+Now @ref{chap nnn the
 node name}
 @end example
 
-@node nnn the node name
+@node chap nnn the node name
 ';
 
 
 $result_texts{'ref_in_preformatted'} = '
-* nnn the node name::
+* chap nnn the node name::
 
-Now nnn the
+Now chap nnn the
 node name
 
 ';
@@ -361,7 +361,7 @@ $result_nodes{'ref_in_preformatted'} = {
     'menu_child' => {
       'cmdname' => 'node',
       'extra' => {
-        'normalized' => 'nnn-the-node-name'
+        'normalized' => 'chap-nnn-the-node-name'
       },
       'info' => {},
       'structure' => {
@@ -386,7 +386,7 @@ $result_menus{'ref_in_preformatted'} = {
     'menu_child' => {
       'cmdname' => 'node',
       'extra' => {
-        'normalized' => 'nnn-the-node-name'
+        'normalized' => 'chap-nnn-the-node-name'
       },
       'info' => {},
       'structure' => {
@@ -415,16 +415,16 @@ $result_converted{'html_text'}->{'ref_in_preformatted'} = 
'<a class="node-id" id
 
 
 <div class="example">
-<pre class="example-preformatted">Now <a class="ref" 
href="#nnn-the-node-name">nnn the
+<pre class="example-preformatted">Now <a class="ref" 
href="#chap-nnn-the-node-name">chap nnn the
 node name</a>
 </pre></div>
 
 <hr>
-<a class="node-id" id="nnn-the-node-name"></a><div class="nav-panel">
+<a class="node-id" id="chap-nnn-the-node-name"></a><div class="nav-panel">
 <p>
  &nbsp; </p>
 </div>
-<h4 class="node"><span>nnn the node name<a class="copiable-link" 
href="#nnn-the-node-name"> &para;</a></span></h4>
+<h4 class="node"><span>chap nnn the node name<a class="copiable-link" 
href="#chap-nnn-the-node-name"> &para;</a></span></h4>
 ';
 
 1;



reply via email to

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