texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp Texinfo/Common.pm Texinfo/Parser.pm ...


From: Patrice Dumas
Subject: texinfo/tp Texinfo/Common.pm Texinfo/Parser.pm ...
Date: Sun, 05 Feb 2012 22:22:19 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/02/05 22:22:19

Modified files:
        tp/Texinfo     : Common.pm Parser.pm 
        tp/t/results/converters_tests: sample_utf8.pl 
                                       things_before_setfilename.pl 
                                       things_before_setfilename_no_element.pl 
        tp/t/results/coverage: insertcopying.pl 
                               punctuation_in_line_commands.pl 
        tp/t/results/coverage_braces: test_image.pl 
        tp/t/results/float: float_copying.pl 
        tp/t/results/heading: heading_in_copying.pl 
        tp/t/results/html_tests: character_number_leading_toc_stoc.pl 
                                 shortcontents_no_top.pl 
        tp/t/results/indices: printindex_index_entry_in_copying.pl 
                              printindex_index_entry_in_copying_in_footnote.pl 
        tp/t/results/info_tests: 
                                 
contents_setcontentsaftertitlepage_before_node.pl 
                                 novalidate_empty_refs.pl 
        tp/t/results/invalid_nestings: node_in_copying_not_closed.pl 
                                       recursive_copying.pl 
        tp/t/results/languages: appendix_translated.pl multiple.pl 
        tp/t/results/macro: macro_in_misc_commands.pl 
        tp/t/results/misc_commands: also_not_line.pl clickstyle.pl 
                                    codequoteundirected_codequotebacktick.pl 
                                    contents.pl invalid_clickstyle.pl 
                                    text_before_line_command.pl 
        tp/t/results/plaintext_tests: insert_copying_and_paragraph.pl 
        tp/t/results/regions: anchor_in_copying.pl 
                              anchor_in_copying_in_footnote.pl 
                              ref_in_copying.pl today_in_copying.pl 
        tp/t/results/sectioning: chapter_before_and_after_part.pl 
                                 chapter_between_nodes.pl 
                                 chapter_node_before_and_after_part.pl 
                                 complex.pl complex_split_at_node.pl 
                                 contents.pl 
                                 contents_and_shortcontents.pl 
                                 contents_in_html_text.pl 
                                 contents_with_only_top_node.pl 
                                 lone_contents.pl 
                                 lowered_subsubsection.pl 
                                 node_part_chapter_after_chapter.pl 
                                 novalidate.pl raiselowersections.pl 
                                 section_before_part.pl 
                                 section_below_unnumbered.pl 
                                 section_in_unnumbered_info.pl 
                                 section_in_unnumbered_plaintext.pl 
                                 setcontentsaftertitlepage.pl 
                                 setshortcontentsaftertitlepage.pl 
                                 shortcontents.pl 
        tp/t/results/value: value_in_misc_commands.pl 
        tp/tests/contents/res_parser/contents_in_middle_chapter: 
                                                                 
contents_in_middle_chapter.2 
        tp/tests/contents/res_parser/contents_in_middle_chapter_info: 
                                                                      
contents_in_middle_chapter.2 
        tp/tests/contents/res_parser/contents_in_middle_chapter_inline: 
                                                                        
contents_in_middle_chapter.2 
        tp/tests/contents/res_parser/contents_in_middle_section: 
                                                                 
contents_in_middle_section.2 
        tp/tests/contents/res_parser/contents_in_middle_section_info: 
                                                                      
contents_in_middle_section.2 
        tp/tests/contents/res_parser/contents_in_middle_section_inline: 
                                                                        
contents_in_middle_section.2 
        tp/tests/contents/res_parser/double_contents: double_contents.2 
        tp/tests/contents/res_parser/double_contents_book: 
                                                           double_contents.2 
        tp/tests/contents/res_parser/double_contents_chapter: 
                                                              double_contents.2 
        tp/tests/contents/res_parser/double_contents_info: 
                                                           double_contents.2 
        tp/tests/contents/res_parser/double_contents_inline: 
                                                             double_contents.2 
        tp/tests/contents/res_parser/double_contents_inline_chapter: 
                                                                     
double_contents.2 
        tp/tests/contents/res_parser/double_contents_inline_nodes: 
                                                                   
double_contents.2 
        tp/tests/contents/res_parser/double_contents_inline_section: 
                                                                     
double_contents.2 
        tp/tests/contents/res_parser/double_contents_nodes: 
                                                            double_contents.2 
        tp/tests/contents/res_parser/double_contents_section: 
                                                              double_contents.2 
        tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage: 
                                                                                
double_contents_setcontentsaftertitlepage.2 
        
tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book: 
                                                                                
     double_contents_setcontentsaftertitlepage.2 
        
tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter:
 
                                                                                
             double_contents_setcontentsaftertitlepage.2 
        
tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info: 
                                                                                
     double_contents_setcontentsaftertitlepage.2 
        
tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline: 
                                                                                
       double_contents_setcontentsaftertitlepage.2 
        tp/tests/formatting: Makefile.am tests-parser.txt 
Added files:
        tp/tests/formatting: contents_at_document_begin.texi 
                             contents_at_end_document.texi 
                             contents_at_end_document_after_node.texi 
                             contents_in_document.texi 
                             contents_no_section.texi 
        tp/tests/formatting/res_parser/contents_at_document_begin: 
                                                                   
contents_at_document_begin.1 
                                                                   
contents_at_document_begin.2 
                                                                   
contents_at_document_begin.html 
        tp/tests/formatting/res_parser/contents_at_end_document: 
                                                                 
contents_at_end_document.1 
                                                                 
contents_at_end_document.2 
                                                                 
contents_at_end_document.html 
        tp/tests/formatting/res_parser/contents_at_end_document_after_node: 
                                                                            
contents_at_end_document_after_node.1 
                                                                            
contents_at_end_document_after_node.2 
                                                                            
contents_at_end_document_after_node.html 
        tp/tests/formatting/res_parser/contents_in_document: 
                                                             
contents_in_document.1 
                                                             
contents_in_document.2 
                                                             
contents_in_document.html 
        tp/tests/formatting/res_parser/contents_no_section: 
                                                            
contents_no_section.1 
                                                            
contents_no_section.2 
                                                            
contents_no_section.html 

Log message:
        Keep line information for all registered commands.
        
        Warn if a @contents is not at the beginning or at the end of a texinfo
        document.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Common.pm?cvsroot=texinfo&r1=1.125&r2=1.126
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.358&r2=1.359
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/converters_tests/sample_utf8.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/converters_tests/things_before_setfilename.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/converters_tests/things_before_setfilename_no_element.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/coverage/insertcopying.pl?cvsroot=texinfo&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/coverage/punctuation_in_line_commands.pl?cvsroot=texinfo&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/coverage_braces/test_image.pl?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/float/float_copying.pl?cvsroot=texinfo&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/heading/heading_in_copying.pl?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/html_tests/character_number_leading_toc_stoc.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/html_tests/shortcontents_no_top.pl?cvsroot=texinfo&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/indices/printindex_index_entry_in_copying.pl?cvsroot=texinfo&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/contents_setcontentsaftertitlepage_before_node.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/novalidate_empty_refs.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl?cvsroot=texinfo&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/invalid_nestings/recursive_copying.pl?cvsroot=texinfo&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/languages/appendix_translated.pl?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/languages/multiple.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/macro/macro_in_misc_commands.pl?cvsroot=texinfo&r1=1.61&r2=1.62
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/also_not_line.pl?cvsroot=texinfo&r1=1.28&r2=1.29
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/clickstyle.pl?cvsroot=texinfo&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/contents.pl?cvsroot=texinfo&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/invalid_clickstyle.pl?cvsroot=texinfo&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/text_before_line_command.pl?cvsroot=texinfo&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/regions/anchor_in_copying.pl?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/regions/anchor_in_copying_in_footnote.pl?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/regions/ref_in_copying.pl?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/regions/today_in_copying.pl?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_between_nodes.pl?cvsroot=texinfo&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_node_before_and_after_part.pl?cvsroot=texinfo&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/complex.pl?cvsroot=texinfo&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/complex_split_at_node.pl?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents_and_shortcontents.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents_in_html_text.pl?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents_with_only_top_node.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/lone_contents.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/lowered_subsubsection.pl?cvsroot=texinfo&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/node_part_chapter_after_chapter.pl?cvsroot=texinfo&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/novalidate.pl?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/raiselowersections.pl?cvsroot=texinfo&r1=1.43&r2=1.44
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_before_part.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_below_unnumbered.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_in_unnumbered_info.pl?cvsroot=texinfo&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl?cvsroot=texinfo&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/shortcontents.pl?cvsroot=texinfo&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/value/value_in_misc_commands.pl?cvsroot=texinfo&r1=1.49&r2=1.50
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter/contents_in_middle_chapter.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter_info/contents_in_middle_chapter.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter_inline/contents_in_middle_chapter.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_book/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_chapter/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_info/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_inline/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_inline_section/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_nodes/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_section/double_contents.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage/double_contents_setcontentsaftertitlepage.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book/double_contents_setcontentsaftertitlepage.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter/double_contents_setcontentsaftertitlepage.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info/double_contents_setcontentsaftertitlepage.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline/double_contents_setcontentsaftertitlepage.2?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/Makefile.am?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/tests-parser.txt?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/contents_at_document_begin.texi?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/contents_at_end_document.texi?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/contents_at_end_document_after_node.texi?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/contents_in_document.texi?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/contents_no_section.texi?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.1?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.2?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.html?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.1?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.2?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.html?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.1?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.2?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.html?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_in_document/contents_in_document.1?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_in_document/contents_in_document.2?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_in_document/contents_in_document.html?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_no_section/contents_no_section.1?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_no_section/contents_no_section.2?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/formatting/res_parser/contents_no_section/contents_no_section.html?cvsroot=texinfo&rev=1.1

Patches:
Index: Texinfo/Common.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Common.pm,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -b -r1.125 -r1.126
--- Texinfo/Common.pm   5 Feb 2012 10:54:54 -0000       1.125
+++ Texinfo/Common.pm   5 Feb 2012 22:22:08 -0000       1.126
@@ -1545,6 +1545,39 @@
   return address@hidden;
 }
 
+sub find_parent_root_command($$)
+{
+  my $parser = shift;
+  my $current = shift;
+
+  my $root_command;
+  while (1) {
+    if ($current->{'cmdname'}) {
+      if ($root_commands{$current->{'cmdname'}}) {
+        return $current;
+      } elsif ($region_commands{$current->{'cmdname'}}) {
+        if ($current->{'cmdname'} eq 'copying' and $parser
+            and $parser->{'extra'} and $parser->{'extra'}->{'insertcopying'}) {
+          foreach my $insertcopying(@{$parser->{'extra'}->{'insertcopying'}}) {
+            my $root_command
+              = $parser->find_parent_root_command($insertcopying);
+            return $root_command if (defined($root_command));
+          }
+        } else {
+          return undef;
+        }
+      }
+    }
+    if ($current->{'parent'}) {
+      $current = $current->{'parent'};
+    } else {
+      return undef;
+    }
+  }
+  # Should never get there
+  return undef;
+}
+
 1;
 
 __END__
@@ -1786,6 +1819,12 @@
 Return a contents array reference with first parenthesis in the 
 contents array reference protected.
 
+=item $command = find_parent_root_command($parser, $tree_element)
+
+Find the parent root command of a tree element (sectioning command or node).
+The C<$parser> argument is optional, it is used to continue 
+through C<@insertcopying> if in a C<@copying>.
+
 =back
 
 =head1 SEE ALSO

Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -b -r1.358 -r1.359
--- Texinfo/Parser.pm   4 Feb 2012 14:22:33 -0000       1.358
+++ Texinfo/Parser.pm   5 Feb 2012 22:22:08 -0000       1.359
@@ -252,6 +252,7 @@
 my %item_line_commands        = %Texinfo::Common::item_line_commands;
 my %deprecated_commands       = %Texinfo::Common::deprecated_commands;
 my %root_commands             = %Texinfo::Common::root_commands;
+my %sectioning_commands       = %Texinfo::Common::sectioning_commands;
 my %command_index_prefix      = %Texinfo::Common::command_index_prefix;
 my %command_structuring_level = %Texinfo::Common::command_structuring_level;
 my %ref_commands              = %Texinfo::Common::ref_commands;
@@ -688,6 +689,47 @@
   return $tree;
 }
 
+sub _check_contents_location($$)
+{
+  my $self = shift;
+  my $tree = shift;
+
+  my $commands = $self->global_commands_information();
+  return unless ($commands);
+  # Find the last sectioning command
+  my $index = -1;
+  my %ending_root_commands;
+  my $found = 0;
+  while ($tree->{'contents'}->[$index]) {
+    if (defined($tree->{'contents'}->[$index]->{'cmdname'})) {
+      $ending_root_commands{$tree->{'contents'}->[$index]} = 1;
+      if ($sectioning_commands{$tree->{'contents'}->[$index]->{'cmdname'}}) {
+        $found = 1;
+        last;
+      }
+    }
+    $index--;
+  }
+  return if (!$found);
+
+  #print STDERR "ending_root_commands 
".join('|',keys(%ending_root_commands))."\n";
+  #print STDERR "tree contents: ".join('|', @{$tree->{'contents'}})."\n";
+  foreach my $command ('contents', 'shortcontents', 'summarycontents') {
+    if ($commands->{$command}) {
+      foreach my $current (@{$commands->{$command}}) {
+        my $root_command = 
$self->Texinfo::Common::find_parent_root_command($current);
+        #print STDERR "root_command for $current->{'cmdname'}: 
$root_command\n";
+        if (defined($root_command) 
+            and !$ending_root_commands{$root_command}) {
+          $self->line_warn (sprintf($self->__(
+                  "address@hidden should only appear at beginning or end of 
document"),
+                            $current->{'cmdname'}), $current->{'line_nr'});    
                   
+        }
+      }
+    }
+  }
+}
+
 # parse a texi file
 sub parse_texi_file ($$)
 {
@@ -762,6 +804,7 @@
     unshift (@{$text_root->{'contents'}}, $before_setfilename)
       if (@{$before_setfilename->{'contents'}});
   }
+  $self->_check_contents_location($tree);
 
   return $tree;
 }
@@ -943,9 +986,11 @@
   }
   if ($self->{'global_commands'}->{$command} and $command ne 'author') {
     push @{$self->{'extra'}->{$command}}, $current;
+    $current->{'line_nr'} = $line_nr if (!$current->{'line_nr'});
     return 1;
   } elsif ($global_unique_commands{$command}) {
     # setfilename ignored in an included file
+    $current->{'line_nr'} = $line_nr if (!$current->{'line_nr'});
     if ($command eq 'setfilename'
         and scalar(@{$self->{'input'}}) > 1) {
     } elsif (exists ($self->{'extra'}->{$current->{'cmdname'}})) {

Index: t/results/converters_tests/sample_utf8.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/converters_tests/sample_utf8.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/converters_tests/sample_utf8.pl   27 Jan 2012 17:11:51 -0000      
1.1
+++ t/results/converters_tests/sample_utf8.pl   5 Feb 2012 22:22:08 -0000       
1.2
@@ -357,6 +357,11 @@
             },
             {
               'cmdname' => 'insertcopying',
+              'line_nr' => {
+                'file_name' => 'sample_utf8.texi',
+                'line_nr' => 20,
+                'macro' => ''
+              },
               'parent' => {}
             },
             {
@@ -435,6 +440,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => 'sample_utf8.texi',
+            'line_nr' => 24,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -532,6 +542,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => 'sample_utf8.texi',
+            'line_nr' => 30,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/converters_tests/things_before_setfilename.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/converters_tests/things_before_setfilename.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/converters_tests/things_before_setfilename.pl     29 Jan 2012 
22:16:08 -0000      1.1
+++ t/results/converters_tests/things_before_setfilename.pl     5 Feb 2012 
22:22:08 -0000       1.2
@@ -690,6 +690,11 @@
             },
             {
               'cmdname' => 'contents',
+              'line_nr' => {
+                'file_name' => 'things_before_setfilename.texi',
+                'line_nr' => 32,
+                'macro' => ''
+              },
               'parent' => {}
             },
             {

Index: t/results/converters_tests/things_before_setfilename_no_element.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/converters_tests/things_before_setfilename_no_element.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/converters_tests/things_before_setfilename_no_element.pl  29 Jan 
2012 22:16:08 -0000      1.1
+++ t/results/converters_tests/things_before_setfilename_no_element.pl  5 Feb 
2012 22:22:08 -0000       1.2
@@ -688,6 +688,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => 'things_before_setfilename_no_element.texi',
+            'line_nr' => 32,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/coverage/insertcopying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/coverage/insertcopying.pl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- t/results/coverage/insertcopying.pl 1 Oct 2011 10:29:26 -0000       1.16
+++ t/results/coverage/insertcopying.pl 5 Feb 2012 22:22:08 -0000       1.17
@@ -186,6 +186,11 @@
     },
     {
       'cmdname' => 'insertcopying',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {

Index: t/results/coverage/punctuation_in_line_commands.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/coverage/punctuation_in_line_commands.pl,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- t/results/coverage/punctuation_in_line_commands.pl  3 Dec 2011 14:58:32 
-0000       1.26
+++ t/results/coverage/punctuation_in_line_commands.pl  5 Feb 2012 22:22:08 
-0000       1.27
@@ -1015,6 +1015,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 36,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/coverage_braces/test_image.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/coverage_braces/test_image.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/results/coverage_braces/test_image.pl     2 Nov 2011 00:44:06 -0000       
1.14
+++ t/results/coverage_braces/test_image.pl     5 Feb 2012 22:22:08 -0000       
1.15
@@ -1327,6 +1327,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 17,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/float/float_copying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/float/float_copying.pl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- t/results/float/float_copying.pl    9 Jan 2012 22:07:15 -0000       1.16
+++ t/results/float/float_copying.pl    5 Feb 2012 22:22:09 -0000       1.17
@@ -807,6 +807,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 29,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -998,6 +1003,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 38,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -1007,6 +1017,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 39,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/heading/heading_in_copying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/heading/heading_in_copying.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/heading/heading_in_copying.pl     10 Jan 2012 23:53:41 -0000      
1.12
+++ t/results/heading/heading_in_copying.pl     5 Feb 2012 22:22:09 -0000       
1.13
@@ -325,6 +325,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 11,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/html_tests/character_number_leading_toc_stoc.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/html_tests/character_number_leading_toc_stoc.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/html_tests/character_number_leading_toc_stoc.pl   22 Nov 2011 
00:34:59 -0000      1.4
+++ t/results/html_tests/character_number_leading_toc_stoc.pl   5 Feb 2012 
22:22:09 -0000       1.5
@@ -176,6 +176,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 6,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -186,6 +191,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 8,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/html_tests/shortcontents_no_top.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/html_tests/shortcontents_no_top.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- t/results/html_tests/shortcontents_no_top.pl        6 Nov 2011 19:17:57 
-0000       1.2
+++ t/results/html_tests/shortcontents_no_top.pl        5 Feb 2012 22:22:09 
-0000       1.3
@@ -149,6 +149,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 7,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/indices/printindex_index_entry_in_copying.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/indices/printindex_index_entry_in_copying.pl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- t/results/indices/printindex_index_entry_in_copying.pl      7 Jan 2012 
15:20:12 -0000       1.20
+++ t/results/indices/printindex_index_entry_in_copying.pl      5 Feb 2012 
22:22:09 -0000       1.21
@@ -753,6 +753,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 23,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -991,6 +996,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 32,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/indices/printindex_index_entry_in_copying_in_footnote.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/indices/printindex_index_entry_in_copying_in_footnote.pl  7 Jan 
2012 15:20:12 -0000       1.17
+++ t/results/indices/printindex_index_entry_in_copying_in_footnote.pl  5 Feb 
2012 22:22:09 -0000       1.18
@@ -346,6 +346,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 17,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -584,6 +589,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 26,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/info_tests/contents_setcontentsaftertitlepage_before_node.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/info_tests/contents_setcontentsaftertitlepage_before_node.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/info_tests/contents_setcontentsaftertitlepage_before_node.pl      
1 Nov 2011 12:26:03 -0000       1.7
+++ t/results/info_tests/contents_setcontentsaftertitlepage_before_node.pl      
5 Feb 2012 22:22:09 -0000       1.8
@@ -17,10 +17,20 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
           'cmdname' => 'setcontentsaftertitlepage',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 3,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/info_tests/novalidate_empty_refs.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/info_tests/novalidate_empty_refs.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/info_tests/novalidate_empty_refs.pl       1 Nov 2011 12:26:06 
-0000       1.7
+++ t/results/info_tests/novalidate_empty_refs.pl       5 Feb 2012 22:22:09 
-0000       1.8
@@ -17,6 +17,11 @@
         },
         {
           'cmdname' => 'novalidate',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/invalid_nestings/node_in_copying_not_closed.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- t/results/invalid_nestings/node_in_copying_not_closed.pl    28 Jan 2012 
14:05:15 -0000      1.31
+++ t/results/invalid_nestings/node_in_copying_not_closed.pl    5 Feb 2012 
22:22:09 -0000       1.32
@@ -147,6 +147,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 9,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/invalid_nestings/recursive_copying.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/invalid_nestings/recursive_copying.pl,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- t/results/invalid_nestings/recursive_copying.pl     3 Jul 2011 14:50:58 
-0000       1.15
+++ t/results/invalid_nestings/recursive_copying.pl     5 Feb 2012 22:22:10 
-0000       1.16
@@ -106,6 +106,11 @@
     },
     {
       'cmdname' => 'insertcopying',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {

Index: t/results/languages/appendix_translated.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/languages/appendix_translated.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- t/results/languages/appendix_translated.pl  22 Nov 2011 00:35:00 -0000      
1.3
+++ t/results/languages/appendix_translated.pl  5 Feb 2012 22:22:10 -0000       
1.4
@@ -191,6 +191,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 8,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/languages/multiple.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/languages/multiple.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/languages/multiple.pl     3 Dec 2011 14:58:39 -0000       1.17
+++ t/results/languages/multiple.pl     5 Feb 2012 22:22:10 -0000       1.18
@@ -523,6 +523,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 13,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -765,6 +770,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 20,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/macro/macro_in_misc_commands.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/macro/macro_in_misc_commands.pl,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -b -r1.61 -r1.62
--- t/results/macro/macro_in_misc_commands.pl   7 Jan 2012 15:48:09 -0000       
1.61
+++ t/results/macro/macro_in_misc_commands.pl   5 Feb 2012 22:22:10 -0000       
1.62
@@ -3170,6 +3170,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 179,
+            'macro' => 'contents-macro'
+          },
           'parent' => {}
         },
         {
@@ -3493,6 +3498,11 @@
             'arg_line' => ' @result-macro{}
 '
           },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 202,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -3726,6 +3736,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 211,
+            'macro' => 'contents-macro'
+          },
           'parent' => {}
         },
         {
@@ -3780,6 +3795,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 216,
+            'macro' => 'shortcontents-macro'
+          },
           'parent' => {}
         },
         {

Index: t/results/misc_commands/also_not_line.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/also_not_line.pl,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- t/results/misc_commands/also_not_line.pl    3 Jul 2011 14:50:59 -0000       
1.28
+++ t/results/misc_commands/also_not_line.pl    5 Feb 2012 22:22:10 -0000       
1.29
@@ -240,6 +240,11 @@
         },
         {
           'cmdname' => 'novalidate',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 16,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/misc_commands/clickstyle.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/clickstyle.pl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- t/results/misc_commands/clickstyle.pl       3 Jul 2011 14:50:59 -0000       
1.21
+++ t/results/misc_commands/clickstyle.pl       5 Feb 2012 22:22:10 -0000       
1.22
@@ -20,6 +20,11 @@
         'arg_line' => ' @result
 '
       },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {

Index: t/results/misc_commands/codequoteundirected_codequotebacktick.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/misc_commands/codequoteundirected_codequotebacktick.pl    24 Jan 
2012 22:17:01 -0000      1.12
+++ t/results/misc_commands/codequoteundirected_codequotebacktick.pl    5 Feb 
2012 22:22:10 -0000       1.13
@@ -1538,6 +1538,11 @@
             },
             {
               'cmdname' => 'insertcopying',
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 35,
+                'macro' => ''
+              },
               'parent' => {}
             },
             {

Index: t/results/misc_commands/contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/contents.pl,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- t/results/misc_commands/contents.pl 3 Jul 2011 14:50:59 -0000       1.19
+++ t/results/misc_commands/contents.pl 5 Feb 2012 22:22:10 -0000       1.20
@@ -33,6 +33,11 @@
     },
     {
       'cmdname' => 'contents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -55,6 +60,11 @@
     },
     {
       'cmdname' => 'contents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 3,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -70,6 +80,11 @@
     },
     {
       'cmdname' => 'contents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 5,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -89,6 +104,11 @@
     },
     {
       'cmdname' => 'shortcontents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 7,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -103,6 +123,11 @@
     },
     {
       'cmdname' => 'shortcontents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -117,6 +142,11 @@
     },
     {
       'cmdname' => 'summarycontents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 9,
+        'macro' => ''
+      },
       'parent' => {}
     }
   ],

Index: t/results/misc_commands/invalid_clickstyle.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/misc_commands/invalid_clickstyle.pl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- t/results/misc_commands/invalid_clickstyle.pl       3 Jul 2011 14:51:00 
-0000       1.21
+++ t/results/misc_commands/invalid_clickstyle.pl       5 Feb 2012 22:22:10 
-0000       1.22
@@ -26,6 +26,11 @@
         'arg_line' => ' @result on the same line
 '
       },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -83,6 +88,11 @@
         'arg_line' => ' @nocmd
 '
       },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 6,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {
@@ -133,6 +143,11 @@
         'arg_line' => ' something
 '
       },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {

Index: t/results/misc_commands/text_before_line_command.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/misc_commands/text_before_line_command.pl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- t/results/misc_commands/text_before_line_command.pl 14 Aug 2011 01:52:02 
-0000      1.16
+++ t/results/misc_commands/text_before_line_command.pl 5 Feb 2012 22:22:11 
-0000       1.17
@@ -185,6 +185,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 6,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/plaintext_tests/insert_copying_and_paragraph.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- t/results/plaintext_tests/insert_copying_and_paragraph.pl   3 Jul 2011 
14:51:01 -0000       1.5
+++ t/results/plaintext_tests/insert_copying_and_paragraph.pl   5 Feb 2012 
22:22:11 -0000       1.6
@@ -100,6 +100,11 @@
     },
     {
       'cmdname' => 'insertcopying',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 6,
+        'macro' => ''
+      },
       'parent' => {}
     },
     {

Index: t/results/regions/anchor_in_copying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/regions/anchor_in_copying.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/regions/anchor_in_copying.pl      1 Nov 2011 12:26:08 -0000       
1.12
+++ t/results/regions/anchor_in_copying.pl      5 Feb 2012 22:22:11 -0000       
1.13
@@ -189,6 +189,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 11,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -204,6 +209,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 13,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/regions/anchor_in_copying_in_footnote.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/regions/anchor_in_copying_in_footnote.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/results/regions/anchor_in_copying_in_footnote.pl  3 Nov 2011 23:54:51 
-0000       1.14
+++ t/results/regions/anchor_in_copying_in_footnote.pl  5 Feb 2012 22:22:11 
-0000       1.15
@@ -222,6 +222,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 12,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -237,6 +242,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 14,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/regions/ref_in_copying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/regions/ref_in_copying.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- t/results/regions/ref_in_copying.pl 22 Nov 2011 00:35:01 -0000      1.5
+++ t/results/regions/ref_in_copying.pl 5 Feb 2012 22:22:11 -0000       1.6
@@ -261,6 +261,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 8,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/regions/today_in_copying.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/regions/today_in_copying.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- t/results/regions/today_in_copying.pl       1 Nov 2011 12:26:09 -0000       
1.3
+++ t/results/regions/today_in_copying.pl       5 Feb 2012 22:22:11 -0000       
1.4
@@ -190,6 +190,11 @@
         },
         {
           'cmdname' => 'insertcopying',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 8,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/sectioning/chapter_before_and_after_part.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/results/sectioning/chapter_before_and_after_part.pl       3 Nov 2011 
18:45:09 -0000       1.14
+++ t/results/sectioning/chapter_before_and_after_part.pl       5 Feb 2012 
22:22:11 -0000       1.15
@@ -158,6 +158,11 @@
           },
           {
             'cmdname' => 'contents',
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 7,
+              'macro' => ''
+            },
             'parent' => {}
           }
         ],

Index: t/results/sectioning/chapter_between_nodes.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_between_nodes.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- t/results/sectioning/chapter_between_nodes.pl       8 Jan 2012 22:16:00 
-0000       1.2
+++ t/results/sectioning/chapter_between_nodes.pl       5 Feb 2012 22:22:11 
-0000       1.3
@@ -450,6 +450,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 19,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/chapter_node_before_and_after_part.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_node_before_and_after_part.pl,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- t/results/sectioning/chapter_node_before_and_after_part.pl  22 Nov 2011 
00:35:01 -0000      1.24
+++ t/results/sectioning/chapter_node_before_and_after_part.pl  5 Feb 2012 
22:22:11 -0000       1.25
@@ -377,6 +377,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 14,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/complex.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/complex.pl,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- t/results/sectioning/complex.pl     22 Nov 2011 00:35:01 -0000      1.23
+++ t/results/sectioning/complex.pl     5 Feb 2012 22:22:11 -0000       1.24
@@ -2912,6 +2912,11 @@
           },
           {
             'cmdname' => 'contents',
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 84,
+              'macro' => ''
+            },
             'parent' => {}
           }
         ],

Index: t/results/sectioning/complex_split_at_node.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/complex_split_at_node.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- t/results/sectioning/complex_split_at_node.pl       22 Nov 2011 00:35:02 
-0000      1.3
+++ t/results/sectioning/complex_split_at_node.pl       5 Feb 2012 22:22:11 
-0000       1.4
@@ -2933,6 +2933,11 @@
           },
           {
             'cmdname' => 'contents',
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 84,
+              'macro' => ''
+            },
             'parent' => {}
           }
         ],

Index: t/results/sectioning/contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/contents.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/sectioning/contents.pl    22 Nov 2011 00:35:02 -0000      1.17
+++ t/results/sectioning/contents.pl    5 Feb 2012 22:22:11 -0000       1.18
@@ -547,6 +547,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 23,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

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.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/contents_and_shortcontents.pl  22 Nov 2011 00:35:03 
-0000      1.7
+++ t/results/sectioning/contents_and_shortcontents.pl  5 Feb 2012 22:22:11 
-0000       1.8
@@ -547,6 +547,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 23,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -557,6 +562,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 25,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/contents_in_html_text.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/contents_in_html_text.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- t/results/sectioning/contents_in_html_text.pl       22 Nov 2011 00:35:03 
-0000      1.5
+++ t/results/sectioning/contents_in_html_text.pl       5 Feb 2012 22:22:11 
-0000       1.6
@@ -198,10 +198,20 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 9,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 10,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/contents_with_only_top_node.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/contents_with_only_top_node.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/sectioning/contents_with_only_top_node.pl 17 Jan 2012 23:40:06 
-0000      1.1
+++ t/results/sectioning/contents_with_only_top_node.pl 5 Feb 2012 22:22:11 
-0000       1.2
@@ -56,6 +56,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/lone_contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/lone_contents.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/sectioning/lone_contents.pl       17 Jan 2012 23:40:06 -0000      
1.1
+++ t/results/sectioning/lone_contents.pl       5 Feb 2012 22:22:11 -0000       
1.2
@@ -9,6 +9,11 @@
   'contents' => [
     {
       'cmdname' => 'contents',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
       'parent' => {}
     }
   ],

Index: t/results/sectioning/lowered_subsubsection.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/lowered_subsubsection.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- t/results/sectioning/lowered_subsubsection.pl       23 Nov 2011 00:28:05 
-0000      1.13
+++ t/results/sectioning/lowered_subsubsection.pl       5 Feb 2012 22:22:12 
-0000       1.14
@@ -1369,6 +1369,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 45,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/node_part_chapter_after_chapter.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/node_part_chapter_after_chapter.pl,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- t/results/sectioning/node_part_chapter_after_chapter.pl     23 Nov 2011 
22:35:16 -0000      1.29
+++ t/results/sectioning/node_part_chapter_after_chapter.pl     5 Feb 2012 
22:22:12 -0000       1.30
@@ -553,6 +553,11 @@
           },
           {
             'cmdname' => 'contents',
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 18,
+              'macro' => ''
+            },
             'parent' => {}
           }
         ],

Index: t/results/sectioning/novalidate.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/novalidate.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/results/sectioning/novalidate.pl  14 Aug 2011 17:31:52 -0000      1.14
+++ t/results/sectioning/novalidate.pl  5 Feb 2012 22:22:12 -0000       1.15
@@ -17,6 +17,11 @@
         },
         {
           'cmdname' => 'novalidate',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/sectioning/raiselowersections.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/raiselowersections.pl,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- t/results/sectioning/raiselowersections.pl  22 Nov 2011 00:35:09 -0000      
1.43
+++ t/results/sectioning/raiselowersections.pl  5 Feb 2012 22:22:12 -0000       
1.44
@@ -1286,6 +1286,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 35,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/section_before_part.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/section_before_part.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/sectioning/section_before_part.pl 23 Nov 2011 22:13:57 -0000      
1.17
+++ t/results/sectioning/section_before_part.pl 5 Feb 2012 22:22:12 -0000       
1.18
@@ -99,6 +99,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 5,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/section_below_unnumbered.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/section_below_unnumbered.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/sectioning/section_below_unnumbered.pl    22 Nov 2011 00:35:09 
-0000      1.17
+++ t/results/sectioning/section_below_unnumbered.pl    5 Feb 2012 22:22:12 
-0000       1.18
@@ -17,6 +17,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/sectioning/section_in_unnumbered_info.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/section_in_unnumbered_info.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- t/results/sectioning/section_in_unnumbered_info.pl  22 Nov 2011 00:35:10 
-0000      1.18
+++ t/results/sectioning/section_in_unnumbered_info.pl  5 Feb 2012 22:22:12 
-0000       1.19
@@ -17,6 +17,11 @@
         },
         {
           'cmdname' => 'setcontentsaftertitlepage',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -114,6 +119,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 7,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/sectioning/section_in_unnumbered_plaintext.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- t/results/sectioning/section_in_unnumbered_plaintext.pl     22 Nov 2011 
00:35:10 -0000      1.24
+++ t/results/sectioning/section_in_unnumbered_plaintext.pl     5 Feb 2012 
22:22:12 -0000       1.25
@@ -17,6 +17,11 @@
         },
         {
           'cmdname' => 'setcontentsaftertitlepage',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -114,6 +119,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 7,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: t/results/sectioning/setcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- t/results/sectioning/setcontentsaftertitlepage.pl   22 Nov 2011 00:35:10 
-0000      1.17
+++ t/results/sectioning/setcontentsaftertitlepage.pl   5 Feb 2012 22:22:12 
-0000       1.18
@@ -11,6 +11,11 @@
       'contents' => [
         {
           'cmdname' => 'setcontentsaftertitlepage',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],
@@ -552,6 +557,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 24,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/setshortcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- t/results/sectioning/setshortcontentsaftertitlepage.pl      22 Nov 2011 
00:35:10 -0000      1.18
+++ t/results/sectioning/setshortcontentsaftertitlepage.pl      5 Feb 2012 
22:22:12 -0000       1.19
@@ -11,6 +11,11 @@
       'contents' => [
         {
           'cmdname' => 'setshortcontentsaftertitlepage',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],
@@ -552,6 +557,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 24,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/sectioning/shortcontents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/shortcontents.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- t/results/sectioning/shortcontents.pl       22 Nov 2011 00:35:10 -0000      
1.18
+++ t/results/sectioning/shortcontents.pl       5 Feb 2012 22:22:12 -0000       
1.19
@@ -547,6 +547,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 23,
+            'macro' => ''
+          },
           'parent' => {}
         }
       ],

Index: t/results/value/value_in_misc_commands.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/value/value_in_misc_commands.pl,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- t/results/value/value_in_misc_commands.pl   15 Sep 2011 20:01:45 -0000      
1.49
+++ t/results/value/value_in_misc_commands.pl   5 Feb 2012 22:22:12 -0000       
1.50
@@ -2438,6 +2438,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 128,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -2665,6 +2670,11 @@
             'arg_line' => ' @value{result_macro}
 '
           },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 143,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -2675,6 +2685,11 @@
         },
         {
           'cmdname' => 'contents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 145,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {
@@ -2705,6 +2720,11 @@
         },
         {
           'cmdname' => 'shortcontents',
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 148,
+            'macro' => ''
+          },
           'parent' => {}
         },
         {

Index: 
tests/contents/res_parser/contents_in_middle_chapter/contents_in_middle_chapter.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter/contents_in_middle_chapter.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_chapter/contents_in_middle_chapter.2
   14 Jan 2012 18:57:44 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_chapter/contents_in_middle_chapter.2
   5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_chapter.texi:19: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/contents/res_parser/contents_in_middle_chapter_info/contents_in_middle_chapter.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter_info/contents_in_middle_chapter.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_chapter_info/contents_in_middle_chapter.2
      14 Jan 2012 18:57:45 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_chapter_info/contents_in_middle_chapter.2
      5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_chapter.texi:19: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/contents/res_parser/contents_in_middle_chapter_inline/contents_in_middle_chapter.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_chapter_inline/contents_in_middle_chapter.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_chapter_inline/contents_in_middle_chapter.2
    14 Jan 2012 18:57:45 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_chapter_inline/contents_in_middle_chapter.2
    5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_chapter.texi:19: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2
   14 Jan 2012 18:57:46 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2
   5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_section.texi:28: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2
      14 Jan 2012 18:57:47 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2
      5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_section.texi:28: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2
    14 Jan 2012 18:57:48 -0000      1.1
+++ 
tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2
    5 Feb 2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+contents_in_middle_section.texi:28: warning: @contents should only appear at 
beginning or end of document

Index: tests/contents/res_parser/double_contents/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents/double_contents.2 14 Jan 2012 
18:57:48 -0000      1.1
+++ tests/contents/res_parser/double_contents/double_contents.2 5 Feb 2012 
22:22:13 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_book/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_book/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_book/double_contents.2    14 Jan 
2012 18:57:50 -0000      1.1
+++ tests/contents/res_parser/double_contents_book/double_contents.2    5 Feb 
2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_chapter/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_chapter/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_chapter/double_contents.2 14 Jan 
2012 18:57:53 -0000      1.1
+++ tests/contents/res_parser/double_contents_chapter/double_contents.2 5 Feb 
2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_info/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_info/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_info/double_contents.2    14 Jan 
2012 18:57:56 -0000      1.1
+++ tests/contents/res_parser/double_contents_info/double_contents.2    5 Feb 
2012 22:22:13 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_inline/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_inline/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_inline/double_contents.2  14 Jan 
2012 18:57:56 -0000      1.1
+++ tests/contents/res_parser/double_contents_inline/double_contents.2  5 Feb 
2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: 
tests/contents/res_parser/double_contents_inline_chapter/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_inline_chapter/double_contents.2  
14 Jan 2012 18:57:58 -0000      1.1
+++ tests/contents/res_parser/double_contents_inline_chapter/double_contents.2  
5 Feb 2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_inline_nodes/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_inline_nodes/double_contents.2    
14 Jan 2012 18:57:59 -0000      1.1
+++ tests/contents/res_parser/double_contents_inline_nodes/double_contents.2    
5 Feb 2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: 
tests/contents/res_parser/double_contents_inline_section/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_inline_section/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_inline_section/double_contents.2  
14 Jan 2012 18:58:03 -0000      1.1
+++ tests/contents/res_parser/double_contents_inline_section/double_contents.2  
5 Feb 2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_nodes/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_nodes/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_nodes/double_contents.2   14 Jan 
2012 18:58:04 -0000      1.1
+++ tests/contents/res_parser/double_contents_nodes/double_contents.2   5 Feb 
2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: tests/contents/res_parser/double_contents_section/double_contents.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_section/double_contents.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/contents/res_parser/double_contents_section/double_contents.2 14 Jan 
2012 18:58:07 -0000      1.1
+++ tests/contents/res_parser/double_contents_section/double_contents.2 5 Feb 
2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents.texi:19: warning: @contents should only appear at beginning or 
end of document

Index: 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage/double_contents_setcontentsaftertitlepage.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage/double_contents_setcontentsaftertitlepage.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage/double_contents_setcontentsaftertitlepage.2
     14 Jan 2012 18:58:08 -0000      1.1
+++ 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage/double_contents_setcontentsaftertitlepage.2
     5 Feb 2012 22:22:14 -0000       1.2
@@ -0,0 +1 @@
+double_contents_setcontentsaftertitlepage.texi:20: warning: @contents should 
only appear at beginning or end of document

Index: 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book/double_contents_setcontentsaftertitlepage.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book/double_contents_setcontentsaftertitlepage.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book/double_contents_setcontentsaftertitlepage.2
        14 Jan 2012 18:58:08 -0000      1.1
+++ 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book/double_contents_setcontentsaftertitlepage.2
        5 Feb 2012 22:22:15 -0000       1.2
@@ -0,0 +1 @@
+double_contents_setcontentsaftertitlepage.texi:20: warning: @contents should 
only appear at beginning or end of document

Index: 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter/double_contents_setcontentsaftertitlepage.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter/double_contents_setcontentsaftertitlepage.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter/double_contents_setcontentsaftertitlepage.2
        14 Jan 2012 18:58:09 -0000      1.1
+++ 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_book_chapter/double_contents_setcontentsaftertitlepage.2
        5 Feb 2012 22:22:15 -0000       1.2
@@ -0,0 +1 @@
+double_contents_setcontentsaftertitlepage.texi:20: warning: @contents should 
only appear at beginning or end of document

Index: 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info/double_contents_setcontentsaftertitlepage.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info/double_contents_setcontentsaftertitlepage.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info/double_contents_setcontentsaftertitlepage.2
        14 Jan 2012 18:58:10 -0000      1.1
+++ 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_info/double_contents_setcontentsaftertitlepage.2
        5 Feb 2012 22:22:15 -0000       1.2
@@ -0,0 +1 @@
+double_contents_setcontentsaftertitlepage.texi:20: warning: @contents should 
only appear at beginning or end of document

Index: 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline/double_contents_setcontentsaftertitlepage.2
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline/double_contents_setcontentsaftertitlepage.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline/double_contents_setcontentsaftertitlepage.2
      14 Jan 2012 18:58:10 -0000      1.1
+++ 
tests/contents/res_parser/double_contents_setcontentsaftertitlepage_inline/double_contents_setcontentsaftertitlepage.2
      5 Feb 2012 22:22:15 -0000       1.2
@@ -0,0 +1 @@
+double_contents_setcontentsaftertitlepage.texi:20: warning: @contents should 
only appear at beginning or end of document

Index: tests/formatting/Makefile.am
===================================================================
RCS file: /sources/texinfo/texinfo/tp/tests/formatting/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- tests/formatting/Makefile.am        27 Jan 2012 23:38:22 -0000      1.3
+++ tests/formatting/Makefile.am        5 Feb 2012 22:22:15 -0000       1.4
@@ -8,6 +8,9 @@
 math_not_closed.texi       tex_not_closed.texi \
 float_copying.texi         my-bib-macros.texi        tex.texi \
 documentlanguage_set.texi japanese_long_name.texi \
+contents_at_end_document.texi contents_in_document.texi \
+contents_at_document_begin.texi contents_no_section.texi \
+contents_at_end_document_after_node.texi \
  file.css tests-parser.txt res_parser
 
 DISTCLEANFILES = tests.log tests.out

Index: tests/formatting/tests-parser.txt
===================================================================
RCS file: /sources/texinfo/texinfo/tp/tests/formatting/tests-parser.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- tests/formatting/tests-parser.txt   30 Jan 2012 00:07:52 -0000      1.5
+++ tests/formatting/tests-parser.txt   5 Feb 2012 22:22:16 -0000       1.6
@@ -34,6 +34,12 @@
 documentlanguage_set_unknown documentlanguage_set.texi --document-language 
unknown
 documentlanguage_set_option_info documentlanguage_set.texi --info 
--document-language fr
 float_copying float_copying.texi --split chapter
+# contents
+contents_at_end_document contents_at_end_document.texi
+contents_in_document contents_in_document.texi
+contents_at_document_begin contents_at_document_begin.texi
+contents_no_section contents_no_section.texi
+contents_at_end_document_after_node contents_at_end_document_after_node.texi
 
 # tex
 block_EOL_tex block_EOL.texi --set-init-var 'L2H 1' --iftex

Index: tests/formatting/contents_at_document_begin.texi
===================================================================
RCS file: tests/formatting/contents_at_document_begin.texi
diff -N tests/formatting/contents_at_document_begin.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/contents_at_document_begin.texi    5 Feb 2012 22:22:15 
-0000       1.1
@@ -0,0 +1,13 @@
+\input texinfo @c -*-texinfo-*-
+
address@hidden contents_at_document_begin.info
+
address@hidden
+
address@hidden Top
address@hidden top
+
address@hidden chap
+
address@hidden
+

Index: tests/formatting/contents_at_end_document.texi
===================================================================
RCS file: tests/formatting/contents_at_end_document.texi
diff -N tests/formatting/contents_at_end_document.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/contents_at_end_document.texi      5 Feb 2012 22:22:15 
-0000       1.1
@@ -0,0 +1,13 @@
+\input texinfo @c -*-texinfo-*-
+
address@hidden contents_at_end_document.info
+
address@hidden Top
address@hidden top
+
address@hidden chap
+
address@hidden
+
address@hidden
+

Index: tests/formatting/contents_at_end_document_after_node.texi
===================================================================
RCS file: tests/formatting/contents_at_end_document_after_node.texi
diff -N tests/formatting/contents_at_end_document_after_node.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/contents_at_end_document_after_node.texi   5 Feb 2012 
22:22:16 -0000       1.1
@@ -0,0 +1,19 @@
+\input texinfo @c -*-texinfo-*-
+
address@hidden contents_at_end_document_after_node.info
+
address@hidden Top
address@hidden top
+
address@hidden
+* a node::
address@hidden menu
+
address@hidden chap
+
address@hidden a node,,,Top
+
address@hidden
+
address@hidden
+

Index: tests/formatting/contents_in_document.texi
===================================================================
RCS file: tests/formatting/contents_in_document.texi
diff -N tests/formatting/contents_in_document.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/contents_in_document.texi  5 Feb 2012 22:22:16 -0000       
1.1
@@ -0,0 +1,12 @@
+\input texinfo @c -*-texinfo-*-
+
address@hidden contents_in_document.info
+
address@hidden Top
address@hidden top
+
address@hidden
+
address@hidden chap
+
address@hidden

Index: tests/formatting/contents_no_section.texi
===================================================================
RCS file: tests/formatting/contents_no_section.texi
diff -N tests/formatting/contents_no_section.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/contents_no_section.texi   5 Feb 2012 22:22:16 -0000       
1.1
@@ -0,0 +1,10 @@
+\input texinfo @c -*-texinfo-*-
+
address@hidden contents_no_section.info
+
address@hidden Top
+
address@hidden
+
address@hidden
+

Index: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.1
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.1
diff -N 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.1

Index: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.2
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.2
diff -N 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.2

Index: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.html
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.html
diff -N 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ 
tests/formatting/res_parser/contents_at_document_begin/contents_at_document_begin.html
      5 Feb 2012 22:22:17 -0000       1.1
@@ -0,0 +1,211 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+
+
+<a name="Top"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[ &lt; ]</td>
+<td valign="middle" align="left">[<a href="#chap" title="Next section in 
reading order"> &gt; </a>]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<a name="top"></a>
+<h1 class="top">top</h1>
+
+<hr size="6">
+<a name="chap"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this 
chapter or previous chapter"> &lt;&lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Previous section in 
reading order"> &lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up 
</a>]</td>
+<td valign="middle" align="left">[ &gt; ]</td>
+<td valign="middle" align="left">[ &gt;&gt; ]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="chapter">1 chap</h1>
+
+<hr size="6">
+<a name="SEC_Contents"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="contents-heading">Table of Contents</h1>
+
+<div class="contents">
+
+<ul class="no-bullet">
+  <li><a name="toc-chap" href="#chap">1 chap</a></li>
+</ul>
+</div>
+<hr>
+<a name="SEC_About"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt;&lt; ] </td>
+    <td align="center">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt; ] </td>
+    <td align="center">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ Up ] </td>
+    <td align="center">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt; ] </td>
+    <td align="center">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt;&gt; ] </td>
+    <td align="center">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td align="center"> [Top] </td>
+    <td align="center">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Contents] </td>
+    <td align="center">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Index] </td>
+    <td align="center">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [ ? ] </td>
+    <td align="center">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong> Example </strong> assumes that the current position is at 
<strong> Subsubsection One-Two-Three </strong> of a document of the following 
structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+
+<hr>
+<p>
+ <font size="-1">
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+ </font>
+ <br>
+
+</p>
+</body>
+</html>

Index: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.1
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.1
diff -N 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.1

Index: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.2
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.2
diff -N 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.2

Index: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.html
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.html
diff -N 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ 
tests/formatting/res_parser/contents_at_end_document/contents_at_end_document.html
  5 Feb 2012 22:22:17 -0000       1.1
@@ -0,0 +1,211 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+
+<a name="Top"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[ &lt; ]</td>
+<td valign="middle" align="left">[<a href="#chap" title="Next section in 
reading order"> &gt; </a>]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<a name="top"></a>
+<h1 class="top">top</h1>
+
+<hr size="6">
+<a name="chap"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this 
chapter or previous chapter"> &lt;&lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Previous section in 
reading order"> &lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up 
</a>]</td>
+<td valign="middle" align="left">[ &gt; ]</td>
+<td valign="middle" align="left">[ &gt;&gt; ]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="chapter">1 chap</h1>
+
+
+<hr size="6">
+<a name="SEC_Contents"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="contents-heading">Table of Contents</h1>
+
+<div class="contents">
+
+<ul class="no-bullet">
+  <li><a name="toc-chap" href="#chap">1 chap</a></li>
+</ul>
+</div>
+<hr>
+<a name="SEC_About"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt;&lt; ] </td>
+    <td align="center">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt; ] </td>
+    <td align="center">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ Up ] </td>
+    <td align="center">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt; ] </td>
+    <td align="center">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt;&gt; ] </td>
+    <td align="center">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td align="center"> [Top] </td>
+    <td align="center">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Contents] </td>
+    <td align="center">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Index] </td>
+    <td align="center">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [ ? ] </td>
+    <td align="center">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong> Example </strong> assumes that the current position is at 
<strong> Subsubsection One-Two-Three </strong> of a document of the following 
structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+
+<hr>
+<p>
+ <font size="-1">
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+ </font>
+ <br>
+
+</p>
+</body>
+</html>

Index: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.1
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.1
diff -N 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.1

Index: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.2
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.2
diff -N 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.2

Index: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.html
===================================================================
RCS file: 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.html
diff -N 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ 
tests/formatting/res_parser/contents_at_end_document_after_node/contents_at_end_document_after_node.html
    5 Feb 2012 22:22:18 -0000       1.1
@@ -0,0 +1,218 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+
+<a name="Top"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[ &lt; ]</td>
+<td valign="middle" align="left">[<a href="#chap" title="Next section in 
reading order"> &gt; </a>]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<a name="top"></a>
+<h1 class="top">top</h1>
+
+<table class="menu" border="0" cellspacing="0">
+<tr><td align="left" valign="top">&bull; <a href="#a-node">a 
node</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
+</td></tr>
+</table>
+
+<hr size="6">
+<a name="chap"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this 
chapter or previous chapter"> &lt;&lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Previous section in 
reading order"> &lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up 
</a>]</td>
+<td valign="middle" align="left">[ &gt; ]</td>
+<td valign="middle" align="left">[ &gt;&gt; ]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="chapter">1 chap</h1>
+
+<a name="a-node"></a>
+
+
+<hr size="6">
+<a name="SEC_Contents"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="contents-heading">Table of Contents</h1>
+
+<div class="contents">
+
+<ul class="no-bullet">
+  <li><a name="toc-chap" href="#chap">1 chap</a></li>
+</ul>
+</div>
+<hr>
+<a name="SEC_About"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt;&lt; ] </td>
+    <td align="center">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt; ] </td>
+    <td align="center">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ Up ] </td>
+    <td align="center">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt; ] </td>
+    <td align="center">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt;&gt; ] </td>
+    <td align="center">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td align="center"> [Top] </td>
+    <td align="center">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Contents] </td>
+    <td align="center">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Index] </td>
+    <td align="center">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [ ? ] </td>
+    <td align="center">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong> Example </strong> assumes that the current position is at 
<strong> Subsubsection One-Two-Three </strong> of a document of the following 
structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+
+<hr>
+<p>
+ <font size="-1">
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+ </font>
+ <br>
+
+</p>
+</body>
+</html>

Index: tests/formatting/res_parser/contents_in_document/contents_in_document.1
===================================================================
RCS file: 
tests/formatting/res_parser/contents_in_document/contents_in_document.1
diff -N tests/formatting/res_parser/contents_in_document/contents_in_document.1

Index: tests/formatting/res_parser/contents_in_document/contents_in_document.2
===================================================================
RCS file: 
tests/formatting/res_parser/contents_in_document/contents_in_document.2
diff -N tests/formatting/res_parser/contents_in_document/contents_in_document.2
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/res_parser/contents_in_document/contents_in_document.2     
5 Feb 2012 22:22:18 -0000       1.1
@@ -0,0 +1 @@
+contents_in_document.texi:8: warning: @contents should only appear at 
beginning or end of document

Index: 
tests/formatting/res_parser/contents_in_document/contents_in_document.html
===================================================================
RCS file: 
tests/formatting/res_parser/contents_in_document/contents_in_document.html
diff -N 
tests/formatting/res_parser/contents_in_document/contents_in_document.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/res_parser/contents_in_document/contents_in_document.html  
5 Feb 2012 22:22:18 -0000       1.1
@@ -0,0 +1,211 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+
+<a name="Top"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[ &lt; ]</td>
+<td valign="middle" align="left">[<a href="#chap" title="Next section in 
reading order"> &gt; </a>]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<a name="top"></a>
+<h1 class="top">top</h1>
+
+
+<hr size="6">
+<a name="chap"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this 
chapter or previous chapter"> &lt;&lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Previous section in 
reading order"> &lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up 
</a>]</td>
+<td valign="middle" align="left">[ &gt; ]</td>
+<td valign="middle" align="left">[ &gt;&gt; ]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="chapter">1 chap</h1>
+
+<hr size="6">
+<a name="SEC_Contents"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="contents-heading">Table of Contents</h1>
+
+<div class="contents">
+
+<ul class="no-bullet">
+  <li><a name="toc-chap" href="#chap">1 chap</a></li>
+</ul>
+</div>
+<hr>
+<a name="SEC_About"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of 
document">Top</a>]</td>
+<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of 
contents">Contents</a>]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? 
</a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt;&lt; ] </td>
+    <td align="center">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &lt; ] </td>
+    <td align="center">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ Up ] </td>
+    <td align="center">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt; ] </td>
+    <td align="center">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td align="center"> [ &gt;&gt; ] </td>
+    <td align="center">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td align="center"> [Top] </td>
+    <td align="center">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Contents] </td>
+    <td align="center">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [Index] </td>
+    <td align="center">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td align="center"> [ ? ] </td>
+    <td align="center">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong> Example </strong> assumes that the current position is at 
<strong> Subsubsection One-Two-Three </strong> of a document of the following 
structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+
+<hr>
+<p>
+ <font size="-1">
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+ </font>
+ <br>
+
+</p>
+</body>
+</html>

Index: tests/formatting/res_parser/contents_no_section/contents_no_section.1
===================================================================
RCS file: tests/formatting/res_parser/contents_no_section/contents_no_section.1
diff -N tests/formatting/res_parser/contents_no_section/contents_no_section.1

Index: tests/formatting/res_parser/contents_no_section/contents_no_section.2
===================================================================
RCS file: tests/formatting/res_parser/contents_no_section/contents_no_section.2
diff -N tests/formatting/res_parser/contents_no_section/contents_no_section.2
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/res_parser/contents_no_section/contents_no_section.2       
5 Feb 2012 22:22:18 -0000       1.1
@@ -0,0 +1 @@
+warning: Must specify a title with a title command or @top

Index: tests/formatting/res_parser/contents_no_section/contents_no_section.html
===================================================================
RCS file: 
tests/formatting/res_parser/contents_no_section/contents_no_section.html
diff -N tests/formatting/res_parser/contents_no_section/contents_no_section.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tests/formatting/res_parser/contents_no_section/contents_no_section.html    
5 Feb 2012 22:22:19 -0000       1.1
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>Untitled Document</title>
+
+<meta name="description" content="Untitled Document">
+<meta name="keywords" content="Untitled Document">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+
+<a name="Top"></a>
+
+
+<hr>
+<p>
+ <font size="-1">
+  This document was generated on <em>a sunny day</em> using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.
+ </font>
+ <br>
+
+</p>
+</body>
+</html>



reply via email to

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