use vars qw(%result_texis %result_texts %result_trees %result_errors %result_indices %result_sectioning %result_nodes %result_menus %result_floats %result_converted %result_converted_errors %result_elements %result_directions_text %result_indices_sort_strings); use utf8; $result_trees{'shortcontents_no_top'} = { 'contents' => [ { 'type' => 'before_node_section' }, { 'args' => [ { 'contents' => [ { 'text' => 'chap' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'chapter', 'contents' => [ { 'text' => ' ', 'type' => 'empty_line' } ], 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 1, 'macro' => '' } }, { 'args' => [ { 'contents' => [ { 'text' => 'chap2' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'chapter', 'contents' => [ { 'text' => ' ', 'type' => 'empty_line' } ], 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 3, 'macro' => '' } }, { 'args' => [ { 'contents' => [ { 'text' => 'sec' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'section', 'contents' => [ { 'text' => ' ', 'type' => 'empty_line' }, { 'args' => [ { 'text' => ' ', 'type' => 'rawline_arg' } ], 'cmdname' => 'shortcontents', 'source_info' => { 'file_name' => '', 'line_nr' => 7, 'macro' => '' } } ], 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 5, 'macro' => '' } } ], 'type' => 'document_root' }; $result_texis{'shortcontents_no_top'} = '@chapter chap @chapter chap2 @section sec @shortcontents '; $result_texts{'shortcontents_no_top'} = '1 chap ****** 2 chap2 ******* 2.1 sec ======= '; $result_sectioning{'shortcontents_no_top'} = { 'structure' => { 'section_childs' => [ { 'cmdname' => 'chapter', 'structure' => { 'section_level' => 1, 'section_number' => 1, 'section_up' => {} } }, { 'cmdname' => 'chapter', 'structure' => { 'section_childs' => [ { 'cmdname' => 'section', 'structure' => { 'section_level' => 2, 'section_number' => '2.1', 'section_up' => {} } } ], 'section_level' => 1, 'section_number' => 2, 'section_prev' => {}, 'section_up' => {}, 'toplevel_prev' => {} } } ], 'section_level' => 0 } }; $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'} = $result_sectioning{'shortcontents_no_top'}; $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[1]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'} = $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[1]; $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'} = $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[0]; $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[1]{'structure'}{'section_up'} = $result_sectioning{'shortcontents_no_top'}; $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[1]{'structure'}{'toplevel_prev'} = $result_sectioning{'shortcontents_no_top'}{'structure'}{'section_childs'}[0]; $result_errors{'shortcontents_no_top'} = []; $result_floats{'shortcontents_no_top'} = {}; $result_converted{'html'}->{'shortcontents_no_top'} = '