[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp Texinfo/Parser.pm t/16raw.t t/result...
From: |
Patrice Dumas |
Subject: |
texinfo/tp Texinfo/Parser.pm t/16raw.t t/result... |
Date: |
Sun, 06 Mar 2011 23:52:56 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/03/06 23:52:50
Modified files:
tp/Texinfo : Parser.pm
tp/t : 16raw.t
tp/t/results/invalid_nestings: ignored_text.pl
tp/t/results/macro: text_before_after.pl
Added files:
tp/t/results/raw: raw_commands_and_end_of_lines.pl
Log message:
Warn when there is text after an @end raw command.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.216&r2=1.217
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/16raw.t?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/invalid_nestings/ignored_text.pl?cvsroot=texinfo&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/macro/text_before_after.pl?cvsroot=texinfo&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/raw/raw_commands_and_end_of_lines.pl?cvsroot=texinfo&rev=1.1
Patches:
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -b -r1.216 -r1.217
--- Texinfo/Parser.pm 5 Mar 2011 23:59:48 -0000 1.216
+++ Texinfo/Parser.pm 6 Mar 2011 23:52:38 -0000 1.217
@@ -2752,6 +2752,13 @@
push @{$current->{'contents'}},
{ 'text' => $1, 'type' => 'raw', 'parent' => $current }
if ($1 ne '');
+ # the condition $line !~ /^\s*@/ leads to no warning when followed by
+ # any @-command. This is in order to avoid warnings for correct
+ # constructs, like @comment after @end raw
+ $self->line_warn (sprintf($self->
+ __("Superfluous argument to address@hidden %s: %s"), 'end',
$end_command,
+ $line), $line_nr)
+ if ($line =~ /\S/ and $line !~ /^\s*@/);
# store toplevel macro specification
if (($end_command eq 'macro' or $end_command eq 'rmacro')
and (! $current->{'parent'}
Index: t/16raw.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/16raw.t,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/16raw.t 19 Feb 2011 11:33:21 -0000 1.14
+++ t/16raw.t 6 Mar 2011 23:52:42 -0000 1.15
@@ -151,6 +151,93 @@
in quotation after end verbaatim
@end quotation
'],
+['raw_commands_and_end_of_lines',
+'
address@hidden
+Surrounded by empty lines.
address@hidden html
+
+Block commands on a line
address@hidden
+in block
+in block l2
address@hidden html
+end commands on a line.
+
+Before the opening command @html
+in block
address@hidden html
+end commands on a line.
+
+Before the opening command @html
+in block
address@hidden html after the closing command.
+
+Before the opening command @html
+in block
address@hidden html
+. A symbol on a line.
+
+Before the opening command @html
+in block
address@hidden html. A symbol after the closing command.
+
address@hidden
+Surrounded by empty lines.
address@hidden tex
+
+Block commands on a line
address@hidden
+in block
address@hidden tex
+end commands on a line.
+
+Before the opening command @tex
+in block
address@hidden tex
+end commands on a line.
+
+Before the opening command @tex
+in block
address@hidden tex after the closing command.
+
+Before the opening command @tex
+in block
address@hidden tex
+. A symbol on a line.
+
+Before the opening command @tex
+in block
address@hidden tex. A symbol after the closing command.
+
address@hidden
+Surrounded by empty lines.
address@hidden verbatim
+
+Block commands on a line
address@hidden
+in block
address@hidden verbatim
+end commands on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim
+end commands on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim after the closing command.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim
+. A symbol on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim. A symbol after the closing command.
+'],
);
my @test_invalid = (
Index: t/results/invalid_nestings/ignored_text.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/invalid_nestings/ignored_text.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- t/results/invalid_nestings/ignored_text.pl 6 Mar 2011 14:44:04 -0000
1.13
+++ t/results/invalid_nestings/ignored_text.pl 6 Mar 2011 23:52:44 -0000
1.14
@@ -63,6 +63,15 @@
'macro' => '',
'text' => '@ifinfo should only appear at a line beginning',
'type' => 'warning'
+ },
+ {
+ 'error_line' => ':3: warning: Superfluous argument to @end ifinfo: on the
node line
+',
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end ifinfo: on the node line',
+ 'type' => 'warning'
}
];
Index: t/results/macro/text_before_after.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/macro/text_before_after.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- t/results/macro/text_before_after.pl 6 Mar 2011 14:44:05 -0000
1.18
+++ t/results/macro/text_before_after.pl 6 Mar 2011 23:52:46 -0000
1.19
@@ -85,6 +85,15 @@
'macro' => '',
'text' => '@macro should only appear at a line beginning',
'type' => 'warning'
+ },
+ {
+ 'error_line' => ':3: warning: Superfluous argument to @end macro: after
+',
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end macro: after',
+ 'type' => 'warning'
}
];
Index: t/results/raw/raw_commands_and_end_of_lines.pl
===================================================================
RCS file: t/results/raw/raw_commands_and_end_of_lines.pl
diff -N t/results/raw/raw_commands_and_end_of_lines.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/raw/raw_commands_and_end_of_lines.pl 6 Mar 2011 23:52:48
-0000 1.1
@@ -0,0 +1,1367 @@
+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);
+
+use utf8;
+
+$result_trees{'raw_commands_and_end_of_lines'} = {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Surrounded by empty lines.
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Block commands on a line
+'
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block l2
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 13,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 18,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 22,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '. A symbol on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 27,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '. A symbol after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Surrounded by empty lines.
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 31,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Block commands on a line
+'
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 36,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 41,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 46,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 50,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '. A symbol on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 55,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '. A symbol after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Surrounded by empty lines.
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 59,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Block commands on a line
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 64,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 69,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'end commands on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 74,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 78,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '. A symbol on a line.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before the opening command '
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'verbatim',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in block
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 83,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '. A symbol after the closing command.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[0]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[1]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[2]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[3]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[4]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[5]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[6]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[7]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[8]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[9]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[10]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[11]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[12]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[13]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[14]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[14];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[14]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[14];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[14]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[15]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[16]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[17]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[18]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[19]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[20]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[21]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[22]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'contents'}[3]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[23]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[24]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[1];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'contents'}[2]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[25]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[26]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[27]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[27];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[27]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[27];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[27]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[28]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[29]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[30]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[30];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[30]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[31]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[31];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[31]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[31];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[31]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[32]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[33]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[33];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[33]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[34]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[35]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[35];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[35]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[36]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[36];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[36]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[36];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[36]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[37]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[38]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[38];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[38]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[39]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[40]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[40];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[40]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[41]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[41];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[41]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[41];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[41]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[42]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[43]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[43];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[43]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[44]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[45]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[45];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[45]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[46]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[46];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[46]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[46];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[46]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[47]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[48]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[48];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[48]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[49]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[50]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[50];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[50]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[51]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[51];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[51]{'contents'}[1]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[51];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[51]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[52]{'contents'}[0]{'parent'}
= $result_trees{'raw_commands_and_end_of_lines'}{'contents'}[52];
+$result_trees{'raw_commands_and_end_of_lines'}{'contents'}[52]{'parent'} =
$result_trees{'raw_commands_and_end_of_lines'};
+
+$result_texis{'raw_commands_and_end_of_lines'} = '
address@hidden
+Surrounded by empty lines.
address@hidden html
+
+Block commands on a line
address@hidden
+in block
+in block l2
address@hidden html
+end commands on a line.
+
+Before the opening command @html
+in block
address@hidden html
+end commands on a line.
+
+Before the opening command @html
+in block
address@hidden html after the closing command.
+
+Before the opening command @html
+in block
address@hidden html
+. A symbol on a line.
+
+Before the opening command @html
+in block
address@hidden html. A symbol after the closing command.
+
address@hidden
+Surrounded by empty lines.
address@hidden tex
+
+Block commands on a line
address@hidden
+in block
address@hidden tex
+end commands on a line.
+
+Before the opening command @tex
+in block
address@hidden tex
+end commands on a line.
+
+Before the opening command @tex
+in block
address@hidden tex after the closing command.
+
+Before the opening command @tex
+in block
address@hidden tex
+. A symbol on a line.
+
+Before the opening command @tex
+in block
address@hidden tex. A symbol after the closing command.
+
address@hidden
+Surrounded by empty lines.
address@hidden verbatim
+
+Block commands on a line
address@hidden
+in block
address@hidden verbatim
+end commands on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim
+end commands on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim after the closing command.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim
+. A symbol on a line.
+
+Before the opening command @verbatim
+in block
address@hidden verbatim. A symbol after the closing command.
+';
+
+
+$result_texts{'raw_commands_and_end_of_lines'} = '
+
+Block commands on a line
+end commands on a line.
+
+Before the opening command end commands on a line.
+
+Before the opening command after the closing command.
+
+Before the opening command . A symbol on a line.
+
+Before the opening command . A symbol after the closing command.
+
+
+Block commands on a line
+end commands on a line.
+
+Before the opening command end commands on a line.
+
+Before the opening command after the closing command.
+
+Before the opening command . A symbol on a line.
+
+Before the opening command . A symbol after the closing command.
+
+Surrounded by empty lines.
+
+Block commands on a line
+in block
+end commands on a line.
+
+Before the opening command in block
+end commands on a line.
+
+Before the opening command in block
+after the closing command.
+
+Before the opening command in block
+. A symbol on a line.
+
+Before the opening command in block
+. A symbol after the closing command.
+';
+
+$result_errors{'raw_commands_and_end_of_lines'} = [
+ {
+ 'error_line' => ':13: warning: @html should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 13,
+ 'macro' => '',
+ 'text' => '@html should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':18: warning: @html should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 18,
+ 'macro' => '',
+ 'text' => '@html should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':20: warning: Superfluous argument to @end html: after
the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 20,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end html: after the closing command.',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':22: warning: @html should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 22,
+ 'macro' => '',
+ 'text' => '@html should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':27: warning: @html should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 27,
+ 'macro' => '',
+ 'text' => '@html should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':29: warning: Superfluous argument to @end html: . A
symbol after the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 29,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end html: . A symbol after the closing
command.',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':41: warning: @tex should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 41,
+ 'macro' => '',
+ 'text' => '@tex should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':46: warning: @tex should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 46,
+ 'macro' => '',
+ 'text' => '@tex should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':48: warning: Superfluous argument to @end tex: after
the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 48,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end tex: after the closing command.',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':50: warning: @tex should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 50,
+ 'macro' => '',
+ 'text' => '@tex should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':55: warning: @tex should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 55,
+ 'macro' => '',
+ 'text' => '@tex should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':57: warning: Superfluous argument to @end tex: . A
symbol after the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 57,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end tex: . A symbol after the closing
command.',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':69: warning: @verbatim should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 69,
+ 'macro' => '',
+ 'text' => '@verbatim should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':74: warning: @verbatim should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 74,
+ 'macro' => '',
+ 'text' => '@verbatim should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':76: warning: Superfluous argument to @end verbatim:
after the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 76,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end verbatim: after the closing
command.',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':78: warning: @verbatim should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 78,
+ 'macro' => '',
+ 'text' => '@verbatim should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':83: warning: @verbatim should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 83,
+ 'macro' => '',
+ 'text' => '@verbatim should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':85: warning: Superfluous argument to @end verbatim: . A
symbol after the closing command.
+',
+ 'file_name' => '',
+ 'line_nr' => 85,
+ 'macro' => '',
+ 'text' => 'Superfluous argument to @end verbatim: . A symbol after the
closing command.',
+ 'type' => 'warning'
+ }
+];
+
+
+
+$result_converted{'plaintext'}->{'raw_commands_and_end_of_lines'} = '
+Block commands on a line end commands on a line.
+
+ Before the opening command end commands on a line.
+
+ Before the opening command after the closing command.
+
+ Before the opening command . A symbol on a line.
+
+ Before the opening command . A symbol after the closing command.
+
+ Block commands on a line end commands on a line.
+
+ Before the opening command end commands on a line.
+
+ Before the opening command after the closing command.
+
+ Before the opening command . A symbol on a line.
+
+ Before the opening command . A symbol after the closing command.
+
+Surrounded by empty lines.
+
+ Block commands on a line
+in block
+ end commands on a line.
+
+ Before the opening command
+in block
+ end commands on a line.
+
+ Before the opening command
+in block
+ after the closing command.
+
+ Before the opening command
+in block
+ . A symbol on a line.
+
+ Before the opening command
+in block
+ . A symbol after the closing command.
+';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/tp Texinfo/Parser.pm t/16raw.t t/result...,
Patrice Dumas <=