texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp TODO Texinfo/Parser.pm Texinfo/Struc...


From: Patrice Dumas
Subject: texinfo/tp TODO Texinfo/Parser.pm Texinfo/Struc...
Date: Tue, 27 Sep 2011 21:16:11 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/09/27 21:16:09

Modified files:
        tp             : TODO 
        tp/Texinfo     : Parser.pm Structuring.pm 
        tp/Texinfo/Convert: XML.pm 
        tp/t           : 19def.t 22xtable.t 
        tp/t/results/sectioning: contents.pl 
                                 contents_and_shortcontents.pl 
                                 sectioning_part_appendix.pl 
                                 setcontentsaftertitlepage.pl 
                                 setshortcontentsaftertitlepage.pl 
                                 shortcontents.pl 
Added files:
        tp/t/results/def: inter_item_commands_in_def_in_example.pl 
        tp/t/results/xtable: inter_item_commands_in_table_in_example.pl 

Log message:
        Appendix ends a @part.
        
        Handle better inter item and inter def* index entries in preformatted.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.175&r2=1.176
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.303&r2=1.304
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Structuring.pm?cvsroot=texinfo&r1=1.86&r2=1.87
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/XML.pm?cvsroot=texinfo&r1=1.39&r2=1.40
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/19def.t?cvsroot=texinfo&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/22xtable.t?cvsroot=texinfo&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/def/inter_item_commands_in_def_in_example.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents.pl?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents_and_shortcontents.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/sectioning_part_appendix.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/shortcontents.pl?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/xtable/inter_item_commands_in_table_in_example.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -b -r1.175 -r1.176
--- TODO        26 Sep 2011 18:03:32 -0000      1.175
+++ TODO        27 Sep 2011 21:16:03 -0000      1.176
@@ -2,8 +2,9 @@
 perl -w t/02coverage.t -o
 xmllint --nonet --noout --valid commands.xml
 
address@hidden should stop @part. Right now it do not do that.
-Cf sectioning_part_appendix.
+cd t/output_files/sectioning
+export XML_CATALOG_FILES=~/src/texinfo/tp/catalog.xml
+xmllint --nonet --noout --valid part_node_chapter_after_top.xml
 
 Test
 @definfoenclose headword, , :

Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.303
retrieving revision 1.304
diff -u -b -r1.303 -r1.304
--- Texinfo/Parser.pm   26 Sep 2011 18:03:32 -0000      1.303
+++ Texinfo/Parser.pm   27 Sep 2011 21:16:04 -0000      1.304
@@ -1140,7 +1140,9 @@
              and $preformatted_content->{'text'} =~ /\S/)
             or ($preformatted_content->{'cmdname'} 
                 and ($preformatted_content->{'cmdname'} ne 'c'
-                     and $preformatted_content->{'cmdname'} ne 'comment'))) {
+                     and $preformatted_content->{'cmdname'} ne 'comment')
+                and !($preformatted_content->{'type'} 
+                      and $preformatted_content->{'type'} eq 
'index_entry_command'))) {
           $after_paragraph = 1;
           last;
         }

Index: Texinfo/Structuring.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Structuring.pm,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- Texinfo/Structuring.pm      27 Sep 2011 07:35:42 -0000      1.86
+++ Texinfo/Structuring.pm      27 Sep 2011 21:16:04 -0000      1.87
@@ -260,6 +260,11 @@
               }
             }
           }
+          if ($appendix_commands{$content->{'cmdname'}} and !$in_appendix
+              and $content->{'level'} <= $number_top_level 
+              and $up->{'cmdname'} and $up->{'cmdname'} eq 'part') {
+            $up = $up->{'section_up'};
+          }
           if ($new_upper_element) {
             # In that case the root has to be updated because the first 'part' 
just appeared
             $content->{'section_up'} = $sec_root;

Index: Texinfo/Convert/XML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/XML.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- Texinfo/Convert/XML.pm      26 Sep 2011 18:03:33 -0000      1.39
+++ Texinfo/Convert/XML.pm      27 Sep 2011 21:16:04 -0000      1.40
@@ -388,7 +388,8 @@
       } else {
         return $root->{'text'};
       }
-    } elsif ($root->{'type'} eq 'empty_line_after_command') {
+    } elsif ($root->{'type'} 
+             and $root->{'type'} eq 'empty_line_after_command') {
       my $command = $root->{'extra'}->{'command'};
       if ($self->{'expanded_formats_hash'}->{$command->{'cmdname'}}
           and $command->{'cmdname'} eq 'xml') {

Index: t/19def.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/19def.t,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- t/19def.t   17 Apr 2011 06:27:09 -0000      1.16
+++ t/19def.t   27 Sep 2011 21:16:05 -0000      1.17
@@ -112,6 +112,20 @@
 In deff item.
 @end deffn
 '],
+['inter_item_commands_in_def_in_example',
+'@example
address@hidden fset @var{i} a g
address@hidden comment before first deffnx
+
address@hidden Command { log trap1} {}  
address@hidden between deffnx
address@hidden cmde2 @b{id @samp{i} ule} truc
address@hidden cindex in deff item
+
+In deff item.
address@hidden deffn
address@hidden example
+'],
 ['defx_after_empty_line',
 '@deffn fset @var{i} a g
 

Index: t/22xtable.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/22xtable.t,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- t/22xtable.t        19 Sep 2011 19:29:04 -0000      1.13
+++ t/22xtable.t        27 Sep 2011 21:16:05 -0000      1.14
@@ -81,6 +81,21 @@
 @item abb
 @end table
 '],
+['inter_item_commands_in_table_in_example',
+'@example
address@hidden @var
address@hidden a
address@hidden index entry between item and itemx
address@hidden and a comment
address@hidden and another comment
address@hidden b
+
address@hidden c
+l--ine
address@hidden d
address@hidden table
address@hidden example
+'],
 ['table_nested',
 '@macro myvtable
 @vtable @asis

Index: t/results/sectioning/contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/contents.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/results/sectioning/contents.pl    27 Jul 2011 00:21:30 -0000      1.11
+++ t/results/sectioning/contents.pl    27 Sep 2011 21:16:05 -0000      1.12
@@ -799,6 +799,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -818,10 +822,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'contents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'contents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -840,12 +840,12 @@
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2];
 $result_sectioning{'contents'}{'section_childs'}[1]{'section_prev'} = 
$result_sectioning{'contents'}{'section_childs'}[0];
 $result_sectioning{'contents'}{'section_childs'}[1]{'section_up'} = 
$result_sectioning{'contents'};
+$result_sectioning{'contents'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[2];
+$result_sectioning{'contents'}{'section_childs'}[2]{'section_prev'} = 
$result_sectioning{'contents'}{'section_childs'}[1];
+$result_sectioning{'contents'}{'section_childs'}[2]{'section_up'} = 
$result_sectioning{'contents'};
+$result_sectioning{'contents'}{'section_childs'}[2]{'toplevel_prev'} = 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'contents'} = [];
 
@@ -996,11 +996,11 @@
   <li><a name="toc-chapter-in-part" href="#chapter-in-part">2 chapter in 
part</a></li>
   <li><a name="toc-second-chapter-in-part" href="#second-chapter-in-part">3 
second chapter in part</a></li>
   <li><a name="toc-unnumbered" href="#unnumbered">unnumbered</a></li>
+</ul></li>
   <li><a name="toc-appendix" href="#appendix">Appendix A appendix</a>
   <ul class="no-bullet">
     <li><a name="toc-appendixsec" href="#appendixsec">A.1 appendixsec</a></li>
   </ul></li>
-</ul></li>
 
 </ul>
 </div>

Index: t/results/sectioning/contents_and_shortcontents.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/contents_and_shortcontents.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/sectioning/contents_and_shortcontents.pl  4 Sep 2011 20:43:07 
-0000       1.1
+++ t/results/sectioning/contents_and_shortcontents.pl  27 Sep 2011 21:16:06 
-0000      1.2
@@ -814,6 +814,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -833,10 +837,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -855,12 +855,12 @@
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1];
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1];
-$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'contents_and_shortcontents'}{'section_childs'}[0];
 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'contents_and_shortcontents'};
+$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents_and_shortcontents'}{'section_childs'}[2];
+$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1];
+$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'contents_and_shortcontents'};
+$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'contents_and_shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'contents_and_shortcontents'} = [];
 
@@ -1007,8 +1007,8 @@
 <li><a name="stoc-chapter-in-part" href="#toc-chapter-in-part">2 chapter in 
part</a></li>
 <li><a name="stoc-second-chapter-in-part" href="#toc-second-chapter-in-part">3 
second chapter in part</a></li>
 <li><a name="stoc-unnumbered" href="#toc-unnumbered">unnumbered</a></li>
-<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 </ul></li>
+<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 
 </ul>
 </div>
@@ -1037,11 +1037,11 @@
   <li><a name="toc-chapter-in-part" href="#chapter-in-part">2 chapter in 
part</a></li>
   <li><a name="toc-second-chapter-in-part" href="#second-chapter-in-part">3 
second chapter in part</a></li>
   <li><a name="toc-unnumbered" href="#unnumbered">unnumbered</a></li>
+</ul></li>
   <li><a name="toc-appendix" href="#appendix">Appendix A appendix</a>
   <ul class="no-bullet">
     <li><a name="toc-appendixsec" href="#appendixsec">A.1 appendixsec</a></li>
   </ul></li>
-</ul></li>
 
 </ul>
 </div>

Index: t/results/sectioning/sectioning_part_appendix.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/sectioning_part_appendix.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/sectioning/sectioning_part_appendix.pl    10 Sep 2011 13:12:38 
-0000      1.4
+++ t/results/sectioning/sectioning_part_appendix.pl    27 Sep 2011 21:16:06 
-0000      1.5
@@ -783,6 +783,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -802,10 +806,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -824,12 +824,12 @@
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1];
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1];
-$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2];
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'sectioning_part_appendix'}{'section_childs'}[0];
 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'sectioning_part_appendix'};
+$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'sectioning_part_appendix'}{'section_childs'}[2];
+$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1];
+$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'sectioning_part_appendix'};
+$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'sectioning_part_appendix'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'sectioning_part_appendix'} = [];
 
@@ -861,12 +861,12 @@
 <unnumbered><sectiontitle>unnumbered</sectiontitle>
 
 </unnumbered>
+</part>
 <appendix><sectiontitle>appendix</sectiontitle>
 
 <appendixsec><sectiontitle>appendixsec</sectiontitle>
 </appendixsec>
 </appendix>
-</part>
 ';
 
 1;

Index: t/results/sectioning/setcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/results/sectioning/setcontentsaftertitlepage.pl   27 Jul 2011 00:21:31 
-0000      1.11
+++ t/results/sectioning/setcontentsaftertitlepage.pl   27 Sep 2011 21:16:06 
-0000      1.12
@@ -806,6 +806,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -825,10 +829,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -847,12 +847,12 @@
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'};
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[2];
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'};
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'setcontentsaftertitlepage'} = [];
 
@@ -970,11 +970,11 @@
   <li><a name="toc-chapter-in-part" href="#chapter-in-part">2 chapter in 
part</a></li>
   <li><a name="toc-second-chapter-in-part" href="#second-chapter-in-part">3 
second chapter in part</a></li>
   <li><a name="toc-unnumbered" href="#unnumbered">unnumbered</a></li>
+</ul></li>
   <li><a name="toc-appendix" href="#appendix">Appendix A appendix</a>
   <ul class="no-bullet">
     <li><a name="toc-appendixsec" href="#appendixsec">A.1 appendixsec</a></li>
   </ul></li>
-</ul></li>
 
 </ul>
 </div>

Index: t/results/sectioning/setshortcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/sectioning/setshortcontentsaftertitlepage.pl      4 Sep 2011 
20:43:08 -0000       1.12
+++ t/results/sectioning/setshortcontentsaftertitlepage.pl      27 Sep 2011 
21:16:06 -0000      1.13
@@ -806,6 +806,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -825,10 +829,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -847,12 +847,12 @@
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'};
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[2];
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'};
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'setshortcontentsaftertitlepage'} = [];
 
@@ -954,8 +954,8 @@
 <li><a name="stoc-chapter-in-part" href="#toc-chapter-in-part">2 chapter in 
part</a></li>
 <li><a name="stoc-second-chapter-in-part" href="#toc-second-chapter-in-part">3 
second chapter in part</a></li>
 <li><a name="stoc-unnumbered" href="#toc-unnumbered">unnumbered</a></li>
-<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 </ul></li>
+<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 
 </ul>
 </div>

Index: t/results/sectioning/shortcontents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/shortcontents.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/sectioning/shortcontents.pl       4 Sep 2011 20:43:08 -0000       
1.12
+++ t/results/sectioning/shortcontents.pl       27 Sep 2011 21:16:06 -0000      
1.13
@@ -799,6 +799,10 @@
           'section_prev' => {},
           'section_up' => {},
           'toplevel_prev' => {}
+        }
+      ],
+      'section_prev' => {},
+      'section_up' => {}
         },
         {
           'cmdname' => 'appendix',
@@ -818,10 +822,6 @@
           'section_up' => {},
           'toplevel_prev' => {}
         }
-      ],
-      'section_prev' => {},
-      'section_up' => {}
-    }
   ]
 };
 
$result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0];
@@ -840,12 +840,12 @@
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'toplevel_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[3];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[3]{'toplevel_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
 $result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_prev'} = 
$result_sectioning{'shortcontents'}{'section_childs'}[0];
 $result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_up'} = 
$result_sectioning{'shortcontents'};
+$result_sectioning{'shortcontents'}{'section_childs'}[2]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[2];
+$result_sectioning{'shortcontents'}{'section_childs'}[2]{'section_prev'} = 
$result_sectioning{'shortcontents'}{'section_childs'}[1];
+$result_sectioning{'shortcontents'}{'section_childs'}[2]{'section_up'} = 
$result_sectioning{'shortcontents'};
+$result_sectioning{'shortcontents'}{'section_childs'}[2]{'toplevel_prev'} = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2];
 
 $result_errors{'shortcontents'} = [];
 
@@ -980,8 +980,8 @@
 <li><a name="stoc-chapter-in-part" href="#toc-chapter-in-part">2 chapter in 
part</a></li>
 <li><a name="stoc-second-chapter-in-part" href="#toc-second-chapter-in-part">3 
second chapter in part</a></li>
 <li><a name="stoc-unnumbered" href="#toc-unnumbered">unnumbered</a></li>
-<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 </ul></li>
+<li><a name="stoc-appendix" href="#toc-appendix">Appendix A appendix</a></li>
 
 </ul>
 </div>

Index: t/results/def/inter_item_commands_in_def_in_example.pl
===================================================================
RCS file: t/results/def/inter_item_commands_in_def_in_example.pl
diff -N t/results/def/inter_item_commands_in_def_in_example.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/def/inter_item_commands_in_def_in_example.pl      27 Sep 2011 
21:16:05 -0000      1.1
@@ -0,0 +1,854 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'inter_item_commands_in_def_in_example'} = {
+  'contents' => [
+    {
+      'cmdname' => 'example',
+      'contents' => [
+        {
+          'extra' => {
+            'command' => {}
+          },
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line_after_command'
+        },
+        {
+          'cmdname' => 'deffn',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'fset '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => 'i'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'var',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' a g
+'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'block_line_arg'
+                }
+              ],
+              'extra' => {
+                'def_args' => [
+                  [
+                    'category',
+                    {
+                      'text' => 'fset'
+                    }
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'name',
+                    {}
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'arg',
+                    {
+                      'text' => 'a'
+                    }
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'arg',
+                    {
+                      'text' => 'g'
+                    }
+                  ]
+                ],
+                'def_command' => 'deffn',
+                'def_parsed_hash' => {
+                  'category' => {},
+                  'name' => {}
+                },
+                'index_entry' => {
+                  'command' => {},
+                  'content' => [
+                    {}
+                  ],
+                  'content_normalized' => [
+                    {}
+                  ],
+                  'in_code' => 1,
+                  'index_at_command' => 'deffn',
+                  'index_name' => 'fn',
+                  'index_prefix' => 'f',
+                  'key' => 'i',
+                  'number' => 1
+                },
+                'original_def_cmdname' => 'deffn'
+              },
+              'line_nr' => {},
+              'parent' => {},
+              'type' => 'def_line'
+            },
+            {
+              'contents' => [
+                {
+                  'contents' => [
+                    {
+                      'args' => [
+                        {
+                          'parent' => {},
+                          'text' => ' comment before first deffnx
+',
+                          'type' => 'misc_arg'
+                        }
+                      ],
+                      'cmdname' => 'c',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '
+',
+                      'type' => 'empty_line'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'preformatted'
+                }
+              ],
+              'parent' => {},
+              'type' => 'inter_def_item'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'Command '
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'text' => ' ',
+                          'type' => 'empty_spaces_before_argument'
+                        },
+                        {
+                          'parent' => {},
+                          'text' => 'log trap1'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'contents' => [],
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '  
+'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'misc_line_arg'
+                }
+              ],
+              'cmdname' => 'deffnx',
+              'extra' => {
+                'def_args' => [
+                  [
+                    'category',
+                    {
+                      'text' => 'Command'
+                    }
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'name',
+                    {
+                      'contents' => [],
+                      'parent' => {},
+                      'type' => 'bracketed_def_content'
+                    }
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'arg',
+                    {
+                      'contents' => [],
+                      'parent' => {},
+                      'type' => 'bracketed_def_content'
+                    }
+                  ]
+                ],
+                'def_command' => 'deffn',
+                'def_parsed_hash' => {
+                  'category' => {},
+                  'name' => {}
+                },
+                'index_entry' => {
+                  'command' => {},
+                  'content' => [
+                    {}
+                  ],
+                  'content_normalized' => [
+                    {}
+                  ],
+                  'in_code' => 1,
+                  'index_at_command' => 'deffnx',
+                  'index_name' => 'fn',
+                  'index_prefix' => 'f',
+                  'key' => 'log trap1',
+                  'number' => 2
+                },
+                'original_def_cmdname' => 'deffnx'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {},
+              'type' => 'def_line'
+            },
+            {
+              'contents' => [
+                {
+                  'contents' => [
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'between deffnx'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'cindex',
+                      'extra' => {
+                        'index_entry' => {
+                          'command' => {},
+                          'content' => [
+                            {}
+                          ],
+                          'content_normalized' => [],
+                          'in_code' => 0,
+                          'index_at_command' => 'cindex',
+                          'index_name' => 'cp',
+                          'index_prefix' => 'c',
+                          'key' => 'between deffnx',
+                          'number' => 1
+                        },
+                        'misc_content' => []
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 6,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'index_entry_command'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'preformatted'
+                }
+              ],
+              'parent' => {},
+              'type' => 'inter_def_item'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'cmde2 '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => 'id '
+                            },
+                            {
+                              'args' => [
+                                {
+                                  'contents' => [
+                                    {
+                                      'parent' => {},
+                                      'text' => 'i'
+                                    }
+                                  ],
+                                  'parent' => {},
+                                  'type' => 'brace_command_arg'
+                                }
+                              ],
+                              'cmdname' => 'samp',
+                              'contents' => [],
+                              'line_nr' => {
+                                'file_name' => '',
+                                'line_nr' => 7,
+                                'macro' => ''
+                              },
+                              'parent' => {}
+                            },
+                            {
+                              'parent' => {},
+                              'text' => ' ule'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'b',
+                      'contents' => [],
+                      'line_nr' => {},
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' truc
+'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'misc_line_arg'
+                }
+              ],
+              'cmdname' => 'deffnx',
+              'extra' => {
+                'def_args' => [
+                  [
+                    'category',
+                    {
+                      'text' => 'cmde2'
+                    }
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'name',
+                    {}
+                  ],
+                  [
+                    'spaces',
+                    {
+                      'text' => ' ',
+                      'type' => 'spaces'
+                    }
+                  ],
+                  [
+                    'arg',
+                    {
+                      'text' => 'truc'
+                    }
+                  ]
+                ],
+                'def_command' => 'deffn',
+                'def_parsed_hash' => {
+                  'category' => {},
+                  'name' => {}
+                },
+                'index_entry' => {
+                  'command' => {},
+                  'content' => [
+                    {}
+                  ],
+                  'content_normalized' => [
+                    {}
+                  ],
+                  'in_code' => 1,
+                  'index_at_command' => 'deffnx',
+                  'index_name' => 'fn',
+                  'index_prefix' => 'f',
+                  'key' => 'id i ule',
+                  'number' => 3
+                },
+                'original_def_cmdname' => 'deffnx'
+              },
+              'line_nr' => {},
+              'parent' => {},
+              'type' => 'def_line'
+            },
+            {
+              'contents' => [
+                {
+                  'contents' => [
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'cindex in deff item'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'cindex',
+                      'extra' => {
+                        'index_entry' => {
+                          'command' => {},
+                          'content' => [
+                            {}
+                          ],
+                          'content_normalized' => [],
+                          'in_code' => 0,
+                          'index_at_command' => 'cindex',
+                          'index_name' => 'cp',
+                          'index_prefix' => 'c',
+                          'key' => 'cindex in deff item',
+                          'number' => 2
+                        },
+                        'misc_content' => []
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 8,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'index_entry_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '
+',
+                      'type' => 'empty_line'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'In deff item.
+'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'preformatted'
+                }
+              ],
+              'parent' => {},
+              'type' => 'def_item'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'deffn'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '
+',
+                      'type' => 'spaces_at_end'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'misc_line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command' => {},
+                'command_argument' => 'deffn',
+                'text_arg' => 'deffn'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 11,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {},
+          'parent' => {}
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'extra' => {
+                    'command' => {}
+                  },
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'example'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'end',
+          'extra' => {
+            'command' => {},
+            'command_argument' => 'example',
+            'text_arg' => 'example'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 12,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'extra' => {
+        'end_command' => {}
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_args'}[2][1]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_args'}[0][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'line_nr'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[2][1]{'contents'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[2][1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[4][1]{'contents'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[4]{'contents'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[4][1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[0][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[2][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[2][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_args'}[2][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'misc_content'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'line_nr'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'line_nr'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'def_args'}[2][1]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'def_parsed_hash'}{'category'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'def_args'}[0][1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'def_parsed_hash'}{'name'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'index_entry'}{'content_normalized'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'line_nr'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'line_nr'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'misc_content'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[6];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'line_nr'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'};
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'extra'}{'command'}
 = $result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'extra'}{'end_command'}
 = 
$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_def_in_example'}{'contents'}[0]{'parent'}
 = $result_trees{'inter_item_commands_in_def_in_example'};
+
+$result_texis{'inter_item_commands_in_def_in_example'} = '@example
address@hidden fset @var{i} a g
address@hidden comment before first deffnx
+
address@hidden Command { log trap1} {}  
address@hidden between deffnx
address@hidden cmde2 @b{id @samp{i} ule} truc
address@hidden cindex in deff item
+
+In deff item.
address@hidden deffn
address@hidden example
+';
+
+
+$result_texts{'inter_item_commands_in_def_in_example'} = 'fset: i a g
+
+Command: log trap1 
+cmde2: id i ule truc
+
+In deff item.
+';
+
+$result_errors{'inter_item_commands_in_def_in_example'} = [
+  {
+    'error_line' => ':2: Entry for index `fn\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 2,
+    'macro' => '',
+    'text' => 'Entry for index `fn\' outside of any node',
+    'type' => 'error'
+  },
+  {
+    'error_line' => ':5: Entry for index `fn\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 5,
+    'macro' => '',
+    'text' => 'Entry for index `fn\' outside of any node',
+    'type' => 'error'
+  },
+  {
+    'error_line' => ':6: Entry for index `cp\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 6,
+    'macro' => '',
+    'text' => 'Entry for index `cp\' outside of any node',
+    'type' => 'error'
+  },
+  {
+    'error_line' => ':7: Entry for index `fn\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 7,
+    'macro' => '',
+    'text' => 'Entry for index `fn\' outside of any node',
+    'type' => 'error'
+  },
+  {
+    'error_line' => ':8: Entry for index `cp\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 8,
+    'macro' => '',
+    'text' => 'Entry for index `cp\' outside of any node',
+    'type' => 'error'
+  }
+];
+
+
+
+$result_converted{'plaintext'}->{'inter_item_commands_in_def_in_example'} = '  
    -- fset: I a g
+
+      -- Command: log trap1
+      -- cmde2: id `i\' ule truc
+
+          In deff item.
+';
+
+1;

Index: t/results/xtable/inter_item_commands_in_table_in_example.pl
===================================================================
RCS file: t/results/xtable/inter_item_commands_in_table_in_example.pl
diff -N t/results/xtable/inter_item_commands_in_table_in_example.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/xtable/inter_item_commands_in_table_in_example.pl 27 Sep 2011 
21:16:06 -0000      1.1
@@ -0,0 +1,630 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'inter_item_commands_in_table_in_example'} = {
+  'contents' => [
+    {
+      'cmdname' => 'example',
+      'contents' => [
+        {
+          'extra' => {
+            'command' => {}
+          },
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line_after_command'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'extra' => {
+                    'command' => {}
+                  },
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'cmdname' => 'var',
+                  'parent' => {},
+                  'type' => 'command_as_argument'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'space_at_end_block_command'
+                }
+              ],
+              'parent' => {},
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'table',
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'contents' => [
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'a'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'item',
+                      'extra' => {
+                        'misc_content' => [
+                          {}
+                        ]
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 3,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'contents' => [
+                            {
+                              'args' => [
+                                {
+                                  'contents' => [
+                                    {
+                                      'extra' => {
+                                        'command' => {}
+                                      },
+                                      'parent' => {},
+                                      'text' => ' ',
+                                      'type' => 'empty_spaces_after_command'
+                                    },
+                                    {
+                                      'parent' => {},
+                                      'text' => 'index entry between item and 
itemx'
+                                    },
+                                    {
+                                      'parent' => {},
+                                      'text' => '
+',
+                                      'type' => 'spaces_at_end'
+                                    }
+                                  ],
+                                  'parent' => {},
+                                  'type' => 'misc_line_arg'
+                                }
+                              ],
+                              'cmdname' => 'cindex',
+                              'extra' => {
+                                'index_entry' => {
+                                  'command' => {},
+                                  'content' => [
+                                    {}
+                                  ],
+                                  'content_normalized' => [],
+                                  'in_code' => 0,
+                                  'index_at_command' => 'cindex',
+                                  'index_name' => 'cp',
+                                  'index_prefix' => 'c',
+                                  'key' => 'index entry between item and 
itemx',
+                                  'number' => 1
+                                },
+                                'misc_content' => []
+                              },
+                              'line_nr' => {
+                                'file_name' => '',
+                                'line_nr' => 4,
+                                'macro' => ''
+                              },
+                              'parent' => {},
+                              'type' => 'index_entry_command'
+                            },
+                            {
+                              'args' => [
+                                {
+                                  'parent' => {},
+                                  'text' => ' and a comment
+',
+                                  'type' => 'misc_arg'
+                                }
+                              ],
+                              'cmdname' => 'c',
+                              'parent' => {}
+                            },
+                            {
+                              'args' => [
+                                {
+                                  'parent' => {},
+                                  'text' => ' and another comment
+',
+                                  'type' => 'misc_arg'
+                                }
+                              ],
+                              'cmdname' => 'comment',
+                              'parent' => {}
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'preformatted'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'inter_item'
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'b'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'itemx',
+                      'extra' => {
+                        'misc_content' => [
+                          {}
+                        ]
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 7,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'empty_line'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'preformatted'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'inter_item'
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'c'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'itemx',
+                      'extra' => {
+                        'misc_content' => [
+                          {}
+                        ]
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 9,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'table_term'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'l--ine
+'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'table_item'
+                }
+              ],
+              'parent' => {},
+              'type' => 'table_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'contents' => [
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'extra' => {
+                                'command' => {}
+                              },
+                              'parent' => {},
+                              'text' => ' ',
+                              'type' => 'empty_spaces_after_command'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => 'd'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'spaces_at_end'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'misc_line_arg'
+                        }
+                      ],
+                      'cmdname' => 'item',
+                      'extra' => {
+                        'misc_content' => [
+                          {}
+                        ]
+                      },
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 11,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'table_term'
+                }
+              ],
+              'parent' => {},
+              'type' => 'table_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'table'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '
+',
+                      'type' => 'spaces_at_end'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'misc_line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command' => {},
+                'command_argument' => 'table',
+                'text_arg' => 'table'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 12,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'block_command_line_contents' => [
+              [
+                {}
+              ]
+            ],
+            'command_as_argument' => {},
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'extra' => {
+                    'command' => {}
+                  },
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'example'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'end',
+          'extra' => {
+            'command' => {},
+            'command_argument' => 'example',
+            'text_arg' => 'example'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 13,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'extra' => {
+        'end_command' => {}
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'misc_content'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'};
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[3]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[3];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'extra'}{'block_command_line_contents'}[0][0]
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'extra'}{'command_as_argument'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'extra'}{'command'}
 = $result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'extra'}{'end_command'}
 = 
$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'contents'}[2];
+$result_trees{'inter_item_commands_in_table_in_example'}{'contents'}[0]{'parent'}
 = $result_trees{'inter_item_commands_in_table_in_example'};
+
+$result_texis{'inter_item_commands_in_table_in_example'} = '@example
address@hidden @var
address@hidden a
address@hidden index entry between item and itemx
address@hidden and a comment
address@hidden and another comment
address@hidden b
+
address@hidden c
+l--ine
address@hidden d
address@hidden table
address@hidden example
+';
+
+
+$result_texts{'inter_item_commands_in_table_in_example'} = 'a
+b
+
+c
+l--ine
+d
+';
+
+$result_errors{'inter_item_commands_in_table_in_example'} = [
+  {
+    'error_line' => ':4: Entry for index `cp\' outside of any node
+',
+    'file_name' => '',
+    'line_nr' => 4,
+    'macro' => '',
+    'text' => 'Entry for index `cp\' outside of any node',
+    'type' => 'error'
+  }
+];
+
+
+
+$result_converted{'plaintext'}->{'inter_item_commands_in_table_in_example'} = 
'     A
+     B
+
+     C
+          l--ine
+     D
+';
+
+
+$result_converted{'html_text'}->{'inter_item_commands_in_table_in_example'} = 
'<div class="example">
+<dl compact="compact">
+<dt><tt><var>a</var></tt></dt>
+<dd><pre class="example"><a 
name="index-index-entry-between-item-and-itemx"></a></pre></dd>
+<dt><tt><var>b</var></tt></dt>
+<dd><pre class="example">
+</pre></dd>
+<dt><tt><var>c</var></tt></dt>
+<dd><pre class="example">l--ine
+</pre></dd>
+<dt><tt><var>d</var></tt></dt>
+</dl>
+</div>
+';
+
+
+$result_converted{'xml'}->{'inter_item_commands_in_table_in_example'} = 
'<example>
+<table commandarg="var">
+<tableentry><tableterm><item><itemformat command="var">a</itemformat></item>
+<pre xml:space="preserve"><cindex index="cp"><indexterm index="cp">index entry 
between item and itemx</indexterm></cindex>
+<!-- and a comment -->
+<!-- and another comment -->
+</pre><itemx><itemformat command="var">b</itemformat></itemx>
+<pre xml:space="preserve">
+</pre><itemx><itemformat command="var">c</itemformat></itemx>
+</tableterm><tableitem><pre xml:space="preserve">l--ine
+</pre></tableitem></tableentry><tableentry><tableterm><item><itemformat 
command="var">d</itemformat></item>
+</tableterm></tableentry></table>
+</example>
+';
+
+1;



reply via email to

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