[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp Texinfo/Parser.pm t/18itemize.t t/re...
From: |
Patrice Dumas |
Subject: |
texinfo/tp Texinfo/Parser.pm t/18itemize.t t/re... |
Date: |
Sat, 09 Jul 2011 19:11:17 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/07/09 19:11:17
Modified files:
tp/Texinfo : Parser.pm
tp/t : 18itemize.t
tp/t/results/itemize: w_argument.pl
Added files:
tp/t/results/itemize: itemize_line_commands_with_brace.pl
Log message:
Consider @-commands with empty braces as commands for @?table and
@itemize commands commnd line.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.263&r2=1.264
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/18itemize.t?cvsroot=texinfo&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/itemize/w_argument.pl?cvsroot=texinfo&r1=1.27&r2=1.28
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/itemize/itemize_line_commands_with_brace.pl?cvsroot=texinfo&rev=1.1
Patches:
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -b -r1.263 -r1.264
--- Texinfo/Parser.pm 3 Jul 2011 23:15:45 -0000 1.263
+++ Texinfo/Parser.pm 9 Jul 2011 19:11:16 -0000 1.264
@@ -2429,6 +2429,29 @@
delete $current->{'extra'}->{'command_as_argument'};
}
}
+ # This code checks that the command_as_argument of the @itemize
+ # is alone on the line, otherwise it is not an command_as_argument.
+ if ($current->{'extra'}
+ and $current->{'extra'}->{'command_as_argument'}
+ and $current->{'cmdname'} eq 'itemize') {
+ my @args = @{$current->{'args'}->[0]->{'contents'}};
+ while (@args) {
+ my $arg = shift @args;
+ last if ($arg eq $current->{'extra'}->{'command_as_argument'});
+ }
+ while (@args) {
+ my $arg = shift @args;
+ if (!(($arg->{'cmdname'}
+ and ($arg->{'cmdname'} eq 'c'
+ or $arg->{'cmdname'} eq 'comment'))
+ or (defined($arg->{'text'}) and $arg->{'text'} !~ /\S/))) {
+ #print STDERR " -> stop at "._print_current($arg)."\n";
+ delete $current->{'extra'}->{'command_as_argument'}->{'type'};
+ delete $current->{'extra'}->{'command_as_argument'};
+ last;
+ }
+ }
+ }
if ($current->{'extra'}
and $current->{'extra'}->{'command_as_argument'}
and
$accent_commands{$current->{'extra'}->{'command_as_argument'}->{'cmdname'}}
@@ -2900,6 +2923,22 @@
}
}
+sub _command_with_command_as_argument($)
+{
+ my $current = shift;
+ return ($current and $current->{'type'}
+ and $current->{'type'} eq 'block_line_arg'
+ and $current->{'parent'}
+ and $current->{'parent'}->{'cmdname'} and
+ ($current->{'parent'}->{'cmdname'} eq 'itemize'
+ or $item_line_commands{$current->{'parent'}->{'cmdname'}})
+ and (scalar(@{$current->{'contents'}}) == 1
+ or (scalar(@{$current->{'contents'}}) == 2
+ and defined($current->{'contents'}->[0]->{'text'})
+ and $current->{'contents'}->[0]->{'text'}
+ =~ /^[^\S\n]*/)))
+}
+
# the different types
#c 'menu_entry'
#c 'menu_entry'
@@ -3209,17 +3248,7 @@
$self->{'definfoenclose'}->{$current->{'cmdname'}})
and $line !~ /^{/) {
# special case for @-command as argument of @itemize or @*table.
- if ($current->{'parent'} and $current->{'parent'}->{'type'}
- and $current->{'parent'}->{'type'} eq 'block_line_arg'
- and $current->{'parent'}->{'parent'}
- and $current->{'parent'}->{'parent'}->{'cmdname'} and
- ($current->{'parent'}->{'parent'}->{'cmdname'} eq 'itemize'
- or
$item_line_commands{$current->{'parent'}->{'parent'}->{'cmdname'}})
- and (scalar(@{$current->{'parent'}->{'contents'}}) == 1
- or (scalar(@{$current->{'parent'}->{'contents'}}) == 2
- and
defined($current->{'parent'}->{'contents'}->[0]->{'text'})
- and $current->{'parent'}->{'contents'}->[0]->{'text'}
- =~ /^[^\S\n]*/))) {
+ if (_command_with_command_as_argument($current->{'parent'})) {
delete $current->{'contents'};
print STDERR "FOR PARENT
address@hidden>{'parent'}->{'parent'}->{'cmdname'} command_as_argument
$current->{'cmdname'}\n" if ($self->{'DEBUG'});
$current->{'type'} = 'command_as_argument' if (!$current->{'type'});
@@ -4200,6 +4229,13 @@
= $explained->{'extra'}->{'brace_command_contents'}->[1];
}
}
+ } elsif
(_command_with_command_as_argument($current->{'parent'}->{'parent'})
+ and scalar(@{$current->{'contents'}}) == 0) {
+ print STDERR "FOR PARENT
address@hidden>{'parent'}->{'parent'}->{'parent'}->{'cmdname'}
command_as_argument braces $current->{'cmdname'}\n" if ($self->{'DEBUG'});
+ $current->{'parent'}->{'type'} = 'command_as_argument'
+ if (!$current->{'parent'}->{'type'});
+
$current->{'parent'}->{'parent'}->{'parent'}->{'extra'}->{'command_as_argument'}
+ = $current->{'parent'};
}
$self->_register_global_command($current->{'parent'}->{'cmdname'},
$current->{'parent'}, $line_nr);
Index: t/18itemize.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/18itemize.t,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- t/18itemize.t 24 Jun 2011 07:42:45 -0000 1.15
+++ t/18itemize.t 9 Jul 2011 19:11:17 -0000 1.16
@@ -420,6 +420,15 @@
@item aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa fffffffff ggggggggg
vvvvvvvvv ggggggggg h
@end enumerate
'],
+['itemize_line_commands_with_brace',
+'@itemize @bullet{}
address@hidden bullet
address@hidden itemize
+
address@hidden @minus{}
address@hidden minus
address@hidden itemize
+'],
['asis_as_itemize_argument',
'@itemize @asis
@item as is
Index: t/results/itemize/w_argument.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/itemize/w_argument.pl,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- t/results/itemize/w_argument.pl 3 Jul 2011 14:50:58 -0000 1.27
+++ t/results/itemize/w_argument.pl 9 Jul 2011 19:11:17 -0000 1.28
@@ -34,7 +34,8 @@
'line_nr' => 1,
'macro' => ''
},
- 'parent' => {}
+ 'parent' => {},
+ 'type' => 'command_as_argument'
},
{
'parent' => {},
@@ -196,6 +197,7 @@
{}
]
],
+ 'command_as_argument' => {},
'end_command' => {}
},
'line_nr' => {},
@@ -234,6 +236,7 @@
$result_trees{'w_argument'}{'contents'}[0]{'contents'}[2]{'extra'}{'command'}
= $result_trees{'w_argument'}{'contents'}[0];
$result_trees{'w_argument'}{'contents'}[0]{'contents'}[2]{'parent'} =
$result_trees{'w_argument'}{'contents'}[0];
$result_trees{'w_argument'}{'contents'}[0]{'extra'}{'block_command_line_contents'}[0][0]
= $result_trees{'w_argument'}{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'w_argument'}{'contents'}[0]{'extra'}{'command_as_argument'} =
$result_trees{'w_argument'}{'contents'}[0]{'args'}[0]{'contents'}[1];
$result_trees{'w_argument'}{'contents'}[0]{'extra'}{'end_command'} =
$result_trees{'w_argument'}{'contents'}[0]{'contents'}[2];
$result_trees{'w_argument'}{'contents'}[0]{'line_nr'} =
$result_trees{'w_argument'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'line_nr'};
$result_trees{'w_argument'}{'contents'}[0]{'parent'} =
$result_trees{'w_argument'};
Index: t/results/itemize/itemize_line_commands_with_brace.pl
===================================================================
RCS file: t/results/itemize/itemize_line_commands_with_brace.pl
diff -N t/results/itemize/itemize_line_commands_with_brace.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/itemize/itemize_line_commands_with_brace.pl 9 Jul 2011
19:11:17 -0000 1.1
@@ -0,0 +1,335 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors
+ %result_indices %result_sectioning %result_nodes %result_menus
+ %result_floats %result_converted %result_converted_errors
+ %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'itemize_line_commands_with_brace'} = {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'bullet',
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'command_as_argument'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'space_at_end_block_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'itemize',
+ 'contents' => [
+ {
+ 'cmdname' => 'item',
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'bullet
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'item_number' => 1
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'itemize'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'command' => {},
+ 'command_argument' => 'itemize',
+ 'text_arg' => 'itemize'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'block_command_line_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'command_as_argument' => {},
+ 'end_command' => {}
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'minus',
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'command_as_argument'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'space_at_end_block_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'itemize',
+ 'contents' => [
+ {
+ 'cmdname' => 'item',
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'minus
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'item_number' => 1
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'itemize'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'command' => {},
+ 'command_argument' => 'itemize',
+ 'text_arg' => 'itemize'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'block_command_line_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'command_as_argument' => {},
+ 'end_command' => {}
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'extra'}{'command'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'extra'}{'block_command_line_contents'}[0][0]
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'extra'}{'command_as_argument'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'extra'}{'end_command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[0]{'parent'} =
$result_trees{'itemize_line_commands_with_brace'};
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[1]{'parent'} =
$result_trees{'itemize_line_commands_with_brace'};
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'extra'}{'command'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1]{'parent'}
= $result_trees{'itemize_line_commands_with_brace'}{'contents'}[2];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'extra'}{'block_command_line_contents'}[0][0]
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'extra'}{'command_as_argument'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'extra'}{'end_command'}
=
$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'contents'}[1];
+$result_trees{'itemize_line_commands_with_brace'}{'contents'}[2]{'parent'} =
$result_trees{'itemize_line_commands_with_brace'};
+
+$result_texis{'itemize_line_commands_with_brace'} = '@itemize @bullet{}
address@hidden bullet
address@hidden itemize
+
address@hidden @minus{}
address@hidden minus
address@hidden itemize
+';
+
+
+$result_texts{'itemize_line_commands_with_brace'} = 'bullet
+
+minus
+';
+
+$result_errors{'itemize_line_commands_with_brace'} = [];
+
+
+
+$result_converted{'plaintext'}->{'itemize_line_commands_with_brace'} = ' *
bullet
+
+ - minus
+';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/tp Texinfo/Parser.pm t/18itemize.t t/re...,
Patrice Dumas <=