[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp Texinfo/Structuring.pm Texinfo/Conve...
From: |
Patrice Dumas |
Subject: |
texinfo/tp Texinfo/Structuring.pm Texinfo/Conve... |
Date: |
Thu, 24 Feb 2011 01:24:06 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/02/24 01:24:06
Modified files:
tp/Texinfo : Structuring.pm
tp/Texinfo/Convert: Info.pm Plaintext.pm Unicode.pm
tp/t : 30sectioning.t
tp/t/results/sectioning: novalidate.pl
Added files:
tp/t/results/sectioning: anchor_zero.pl
top_no_argument_and_content.pl
Log message:
Handle better @click if the @clickstyle arg is not a @-command with
brace and no
argument.
Don't remove the contents of sectioning commands without args.
Don't add references with empty name.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Structuring.pm?cvsroot=texinfo&r1=1.34&r2=1.35
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Info.pm?cvsroot=texinfo&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Plaintext.pm?cvsroot=texinfo&r1=1.93&r2=1.94
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Unicode.pm?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/30sectioning.t?cvsroot=texinfo&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/novalidate.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/anchor_zero.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/top_no_argument_and_content.pl?cvsroot=texinfo&rev=1.1
Patches:
Index: Texinfo/Structuring.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Structuring.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- Texinfo/Structuring.pm 20 Feb 2011 23:36:01 -0000 1.34
+++ Texinfo/Structuring.pm 24 Feb 2011 01:24:05 -0000 1.35
@@ -566,7 +566,8 @@
$refs = $self->internal_references_information() if (!defined($refs));
return if (!defined($refs));
foreach my $ref (@$refs) {
- if (!$labels->{$ref->{'extra'}->{'node_argument'}->{'normalized'}}) {
+ if (!defined($labels->{$ref->{'extra'}->{'node_argument'}->{'normalized'}})
+ and !$self->{'novalidate'}) {
$self->line_error (sprintf($self->__("address@hidden reference to
nonexistent node `%s'"),
$ref->{'cmdname'},
_node_extra_to_texi($ref->{'extra'}->{'node_argument'})),
Index: Texinfo/Convert/Info.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Info.pm,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- Texinfo/Convert/Info.pm 22 Feb 2011 01:30:36 -0000 1.35
+++ Texinfo/Convert/Info.pm 24 Feb 2011 01:24:05 -0000 1.36
@@ -227,7 +227,8 @@
#Â This may happen for anchors in @insertcopying
my %seen_anchors;
foreach my $label (@{$self->{'count_context'}->[-1]->{'locations'}}) {
- next unless ($label->{'root'});
+ next unless ($label->{'root'} and $label->{'root'}->{'extra'}
+ and defined($label->{'root'}->{'extra'}->{'normalized'}));
my $prefix;
if ($label->{'root'}->{'cmdname'} eq 'node') {
$prefix = 'Node';
Index: Texinfo/Convert/Plaintext.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Plaintext.pm,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- Texinfo/Convert/Plaintext.pm 22 Feb 2011 01:30:36 -0000 1.93
+++ Texinfo/Convert/Plaintext.pm 24 Feb 2011 01:24:05 -0000 1.94
@@ -761,12 +761,15 @@
$self->{'empty_lines_count'} = 1;
} else {
+ my $node_contents =
address@hidden>{'extra'}->{'node'}->{'extra'}->{'node_content'}},
+ {'text' => '-Footnotes'}];
+ my $normalized
+ = Texinfo::Convert::NodeNameNormalization::convert({'contents' =>
$node_contents});
my $footnotes_node = {
'cmdname' => 'node',
'node_up' => $element->{'extra'}->{'node'},
- 'extra' => {'node_content' =>
- address@hidden>{'extra'}->{'node'}->{'extra'}->{'node_content'}},
- {'text' => '-Footnotes'}]}
+ 'extra' => {'node_content' => $node_contents,
+ 'normalized' => $normalized}
};
$result .= $self->_node($footnotes_node);
$self->{'count_context'}->[-1]->{'lines'} = 0;
@@ -1172,7 +1175,8 @@
if ($root->{'extra'}->{'invalid_nesting'}) {
print STDERR "INVALID_NESTING\n" if ($self->{'DEBUG'});
return '';
- } elsif ($root->{'extra'}->{'missing_argument'}) {
+ } elsif ($root->{'extra'}->{'missing_argument'}
+ and (!$root->{'contents'} or address@hidden>{'contents'}})) {
print STDERR "MISSING_ARGUMENT\n" if ($self->{'DEBUG'});
return '';
}
Index: Texinfo/Convert/Unicode.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Unicode.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- Texinfo/Convert/Unicode.pm 15 Nov 2010 00:22:37 -0000 1.7
+++ Texinfo/Convert/Unicode.pm 24 Feb 2011 01:24:05 -0000 1.8
@@ -512,6 +512,9 @@
'guillemotright' => '00BB',
'guilsinglleft' => '2039',
'guilsinglright' => '203A',
+ #Â this should only happen if the @clickstyle argument isn't a
+ #Â command with braces and no argument.
+ 'click' => '2192',
);
# set the %unicode_character_brace_no_arg_commands value to the character
Index: t/30sectioning.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/30sectioning.t,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- t/30sectioning.t 20 Feb 2011 12:18:34 -0000 1.20
+++ t/30sectioning.t 24 Feb 2011 01:24:06 -0000 1.21
@@ -78,8 +78,22 @@
Should be unnumbered.
@bye
-'
-],
+'],
+['top_no_argument_and_content',
+'@top
+
+A.
+'],
+);
+
+my @tests_info = (
+['anchor_zero',
+'@node Top
+
address@hidden
+
address@hidden
+']
);
my @test_cases = (
@@ -529,6 +543,8 @@
@menu
* not a node::
@end menu
+
address@hidden ref}.
'],
['loop_nodes',
'
@@ -654,9 +670,12 @@
foreach my $test (@tests_converted) {
$test->[2]->{'test_formats'} = ['plaintext'];
}
+foreach my $test (@tests_info) {
+ $test->[2]->{'test_formats'} = ['info'];
+}
our ($arg_test_case, $arg_generate, $arg_debug);
-run_all ('sectioning', address@hidden, @tests_converted], $arg_test_case,
+run_all ('sectioning', address@hidden, @tests_converted, @tests_info],
$arg_test_case,
$arg_generate, $arg_debug);
Index: t/results/sectioning/novalidate.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/novalidate.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/sectioning/novalidate.pl 15 Feb 2011 21:40:47 -0000 1.6
+++ t/results/sectioning/novalidate.pl 24 Feb 2011 01:24:06 -0000 1.7
@@ -144,6 +144,59 @@
'text' => '
',
'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'unknown ref'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'xref',
+ 'contents' => [],
+ 'extra' => {
+ 'brace_command_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'label' => undef,
+ 'node_argument' => {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'unknown-ref'
+ }
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 10,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
}
],
'extra' => {
@@ -196,6 +249,14 @@
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'novalidate'}{'contents'}[1]{'contents'}[1];
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[1]{'parent'} =
$result_trees{'novalidate'}{'contents'}[1];
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[2]{'parent'} =
$result_trees{'novalidate'}{'contents'}[1];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[3]{'parent'} =
$result_trees{'novalidate'}{'contents'}[1];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0]
=
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'parent'}
= $result_trees{'novalidate'}{'contents'}[1]{'contents'}[4];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'contents'}[1]{'parent'}
= $result_trees{'novalidate'}{'contents'}[1]{'contents'}[4];
+$result_trees{'novalidate'}{'contents'}[1]{'contents'}[4]{'parent'} =
$result_trees{'novalidate'}{'contents'}[1];
$result_trees{'novalidate'}{'contents'}[1]{'extra'}{'node_content'}[0] =
$result_trees{'novalidate'}{'contents'}[1]{'args'}[0]{'contents'}[1];
$result_trees{'novalidate'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
= $result_trees{'novalidate'}{'contents'}[1]{'extra'}{'node_content'};
$result_trees{'novalidate'}{'contents'}[1]{'extra'}{'nodes_manuals'}[1]{'node_content'}[0]
= $result_trees{'novalidate'}{'contents'}[1]{'args'}[1]{'contents'}[1];
@@ -209,6 +270,8 @@
@menu
* not a node::
@end menu
+
address@hidden ref}.
';
@@ -216,6 +279,8 @@
* not a node::
+
+.
';
$result_sectioning{'novalidate'} = {};
Index: t/results/sectioning/anchor_zero.pl
===================================================================
RCS file: t/results/sectioning/anchor_zero.pl
diff -N t/results/sectioning/anchor_zero.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/anchor_zero.pl 24 Feb 2011 01:24:06 -0000 1.1
@@ -0,0 +1,250 @@
+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_trees{'anchor_zero'} = {
+ 'contents' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '0'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'anchor',
+ 'contents' => [],
+ 'extra' => {
+ 'brace_command_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => '0'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '0'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'xref',
+ 'contents' => [],
+ 'extra' => {
+ 'brace_command_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'label' => {},
+ 'node_argument' => {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => '0'
+ }
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'anchor_zero'}{'contents'}[0]{'parent'} =
$result_trees{'anchor_zero'};
+$result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[0]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'extra'}{'brace_command_contents'}[0][0]
=
$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[2];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[2]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[3]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0]
=
$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'extra'}{'label'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[0]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'contents'}[1]{'parent'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4];
+$result_trees{'anchor_zero'}{'contents'}[1]{'contents'}[4]{'parent'} =
$result_trees{'anchor_zero'}{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'extra'}{'node_content'}[0] =
$result_trees{'anchor_zero'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'anchor_zero'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
= $result_trees{'anchor_zero'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'anchor_zero'}{'contents'}[1]{'parent'} =
$result_trees{'anchor_zero'};
+
+$result_texis{'anchor_zero'} = '@node Top
+
address@hidden
+
address@hidden
+';
+
+
+$result_texts{'anchor_zero'} = '
+.
+
+.
+';
+
+$result_sectioning{'anchor_zero'} = {};
+
+$result_nodes{'anchor_zero'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'node_up' => {
+ 'extra' => {
+ 'manual_content' => [
+ {
+ 'text' => 'dir'
+ }
+ ]
+ }
+ }
+};
+
+$result_menus{'anchor_zero'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+};
+
+$result_errors{'anchor_zero'} = [];
+
+
+
+$result_converted{'info'}->{'anchor_zero'} = 'This is , produced by makeinfo
version 4.13 from .
+
+
+File: , Node: Top, Up: (dir)
+
+.
+
+ *Note 0::.
+
+
+Tag Table:
+Node: Top52
+Ref: 086
+
+End Tag Table
+';
+
+1;
Index: t/results/sectioning/top_no_argument_and_content.pl
===================================================================
RCS file: t/results/sectioning/top_no_argument_and_content.pl
diff -N t/results/sectioning/top_no_argument_and_content.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/top_no_argument_and_content.pl 24 Feb 2011 01:24:06
-0000 1.1
@@ -0,0 +1,112 @@
+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_trees{'top_no_argument_and_content'} = {
+ 'contents' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'A.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'missing_argument' => 1
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'top_no_argument_and_content'}{'contents'}[0]{'parent'} =
$result_trees{'top_no_argument_and_content'};
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'top_no_argument_and_content'}{'contents'}[1]{'args'}[0];
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'top_no_argument_and_content'}{'contents'}[1];
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'top_no_argument_and_content'}{'contents'}[1];
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'top_no_argument_and_content'}{'contents'}[1]{'contents'}[1];
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'top_no_argument_and_content'}{'contents'}[1];
+$result_trees{'top_no_argument_and_content'}{'contents'}[1]{'parent'} =
$result_trees{'top_no_argument_and_content'};
+
+$result_texis{'top_no_argument_and_content'} = '@top
+
+A.
+';
+
+
+$result_texts{'top_no_argument_and_content'} = '
+A.
+';
+
+$result_sectioning{'top_no_argument_and_content'} = {
+ 'level' => -1,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'missing_argument' => 1
+ },
+ 'level' => 0,
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'top_no_argument_and_content'}{'section_childs'}[0]{'section_up'}
= $result_sectioning{'top_no_argument_and_content'};
+
+$result_errors{'top_no_argument_and_content'} = [
+ {
+ 'error_line' => ':1: @top missing argument
+',
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => '',
+ 'text' => '@top missing argument',
+ 'type' => 'error'
+ }
+];
+
+
+
+$result_converted{'plaintext'}->{'top_no_argument_and_content'} = '
+A.
+';
+
+1;