[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_process_text,
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_process_text, new_formatter) (_convert): put upper casing information on a distinct stack, to be able to stop the upper casing context, using an internal type _stop_upper_case. Use it for node and file and *note for @*ref, for @url and @inlineraw. |
Date: |
Wed, 08 Mar 2023 17:44:15 -0500 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 6c282d6736 * tp/Texinfo/Convert/Plaintext.pm (_process_text,
new_formatter) (_convert): put upper casing information on a distinct stack, to
be able to stop the upper casing context, using an internal type
_stop_upper_case. Use it for node and file and *note for @*ref, for @url and
@inlineraw.
6c282d6736 is described below
commit 6c282d6736ad11d9c453dee5078764306c414964
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Mar 8 23:44:04 2023 +0100
* tp/Texinfo/Convert/Plaintext.pm (_process_text, new_formatter)
(_convert): put upper casing information on a distinct stack, to be
able to stop the upper casing context, using an internal type
_stop_upper_case. Use it for node and file and *note for @*ref, for
@url and @inlineraw.
* tp/t/info_tests.t, tp/t/nodenormalization.t: add more to
commands_in_sc.
---
ChangeLog | 11 ++
tp/Texinfo/Convert/Plaintext.pm | 63 ++++---
tp/t/info_tests.t | 7 +-
tp/t/nodenormalization.t | 11 +-
tp/t/results/info_tests/commands_in_sc.pl | 301 ++++++++++++++++++++++++++++--
5 files changed, 353 insertions(+), 40 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 68ee9badcf..a090c71d03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2023-03-08 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/Plaintext.pm (_process_text, new_formatter)
+ (_convert): put upper casing information on a distinct stack, to be
+ able to stop the upper casing context, using an internal type
+ _stop_upper_case. Use it for node and file and *note for @*ref, for
+ @url and @inlineraw.
+
+ * tp/t/info_tests.t, tp/t/nodenormalization.t: add more to
+ commands_in_sc.
+
2023-03-08 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/Plaintext.pm (_process_text): remove condition
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 11e327a604..07748c4889 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -657,7 +657,7 @@ sub _process_text($$$)
my $text = $command->{'text'};
- if ($context->{'upper_case'}) {
+ if ($context->{'upper_case_stack'}->[-1]->{'upper_case'}) {
$text = _protect_sentence_ends($text);
$text = uc($text);
}
@@ -737,7 +737,7 @@ sub new_formatter($$;$)
set_space_protection($container, undef, 1, 1);
}
- my $formatter = {'container' => $container, 'upper_case' => 0,
+ my $formatter = {'container' => $container, 'upper_case_stack' => [{}],
'font_type_stack' => [{}],
'w' => 0, 'type' => $type,
'frenchspacing_stack' => [$self->{'conf'}->{'frenchspacing'}],
@@ -1913,7 +1913,7 @@ sub _convert($$)
# @AA{} should suppress an end sentence, @aa{} shouldn't. This
# is the case whether we are in @sc or not.
- if ($formatter->{'upper_case'}
+ if ($formatter->{'upper_case_stack'}->[-1]->{'upper_case'}
and $letter_no_arg_commands{$command}) {
$text = _protect_sentence_ends($text);
$text = uc($text);
@@ -1939,7 +1939,7 @@ sub _convert($$)
remove_end_sentence($formatter->{'container'});
}
}
- if ($formatter->{'var'}
+ if ($formatter->{'upper_case_stack'}->[-1]->{'var'}
or $formatter->{'font_type_stack'}->[-1]->{'monospace'}) {
allow_end_sentence($formatter->{'container'});
}
@@ -1951,7 +1951,7 @@ sub _convert($$)
$encoding = $self->{'output_encoding_name'};
}
my $sc;
- if ($formatter->{'upper_case'}) {
+ if ($formatter->{'upper_case_stack'}->[-1]->{'upper_case'}) {
$sc = 1;
}
my $accented_text
@@ -1960,14 +1960,14 @@ sub _convert($$)
add_text($formatter->{'container'}, $accented_text));
my $accented_text_original;
- if ($formatter->{'upper_case'}) {
+ if ($formatter->{'upper_case_stack'}->[-1]->{'upper_case'}) {
$accented_text_original
= Texinfo::Convert::Text::text_accents($element, $encoding);
}
if (($accented_text_original
and $accented_text_original !~ /\p{Upper}/)
- or $formatter->{'var'}
+ or $formatter->{'upper_case_stack'}->[-1]->{'var'}
or $formatter->{'font_type_stack'}->[-1]->{'monospace'}) {
allow_end_sentence($formatter->{'container'});
}
@@ -2002,8 +2002,8 @@ sub _convert($$)
undef,undef,1);
}
if ($upper_case_commands{$command}) {
- $formatter->{'upper_case'}++;
- $formatter->{'var'}++ if ($command eq 'var');
+ $formatter->{'upper_case_stack'}->[-1]->{'upper_case'}++;
+ $formatter->{'upper_case_stack'}->[-1]->{'var'}++ if ($command eq
'var');
}
if ($command eq 'w') {
$formatter->{'w'}++;
@@ -2081,9 +2081,9 @@ sub _convert($$)
undef, undef, $frenchspacing);
}
if ($upper_case_commands{$command}) {
- $formatter->{'upper_case'}--;
+ $formatter->{'upper_case_stack'}->[-1]->{'upper_case'}--;
if ($command eq 'var') {
- $formatter->{'var'}--;
+ $formatter->{'upper_case_stack'}->[-1]->{'var'}--;
# Allow a following full stop to terminate a sentence.
allow_end_sentence($formatter->{'container'});
}
@@ -2141,12 +2141,15 @@ sub _convert($$)
and $element->{'args'}->[2]->{'contents'}
and @{$element->{'args'}->[2]->{'contents'}}) {
unshift @{$self->{'current_contents'}->[-1]},
- {'contents' => $element->{'args'}->[2]->{'contents'}};
+ {'type' => '_stop_upper_case',
+ 'contents' => $element->{'args'}->[2]->{'contents'}};
} elsif ($element->{'args'}->[0]->{'contents'}
and @{$element->{'args'}->[0]->{'contents'}}) {
# no mangling of --- and similar in url.
- my $url = {'type' => '_code',
- 'contents' => $element->{'args'}->[0]->{'contents'}};
+ my $url = {'type' => '_stop_upper_case',
+ 'contents' => [
+ {'type' => '_code',
+ 'contents' => $element->{'args'}->[0]->{'contents'}}]};
if (scalar(@{$element->{'args'}}) == 2
and defined($element->{'args'}->[1])
and $element->{'args'}->[1]->{'contents'}
@@ -2276,9 +2279,11 @@ sub _convert($$)
undef, undef, undef, undef, 1);
if ($command eq 'xref') {
- $result = _convert($self, {'contents' => [{'text' => '*Note '}]});
+ $result = _convert($self, {'type' => '_stop_upper_case',
+ 'contents' => [{'text' => '*Note '}]});
} else {
- $result = _convert($self, {'contents' => [{'text' => '*note '}]});
+ $result = _convert($self, {'type' => '_stop_upper_case',
+ 'contents' => [{'text' => '*note '}]});
}
my $name;
if (defined($args[1])) {
@@ -2289,8 +2294,9 @@ sub _convert($$)
my $file;
if (defined($args[3])) {
$file = [{'text' => '('},
- {'type' => '_code',
- 'contents' => $args[3]},
+ {'type' => '_stop_upper_case',
+ 'contents' => [{'type' => '_code',
+ 'contents' => $args[3]}],},
{'text' => ')'},];
} elsif (defined($args[4])) {
# add a () such that the node is considered to be external,
@@ -2384,8 +2390,10 @@ sub _convert($$)
if $pre_quote;
$self->{'formatters'}->[-1]->{'suppress_styles'} = 1;
- $node_text .= _convert($self, {'type' => '_code',
- 'contents' => $node_content});
+ $node_text .= _convert($self, {'type' => '_stop_upper_case',
+ 'contents' => [
+ {'type' => '_code',
+ 'contents' => $node_content}]});
delete $self->{'formatters'}->[-1]->{'suppress_styles'};
$node_text .= _count_added($self,
@@ -2489,11 +2497,16 @@ sub _convert($$)
and defined($element->{'args'}->[$arg_index])
and $element->{'args'}->[$arg_index]->{'contents'}
and @{$element->{'args'}->[$arg_index]->{'contents'}}) {
- my $argument = {};
+ my $contents = $element->{'args'}->[$arg_index]->{'contents'};
+ my $argument;
if ($command eq 'inlineraw') {
- $argument->{'type'} = '_code';
+ $argument = {'type' => '_stop_upper_case',
+ 'contents' => [{'type' => '_code',
+ 'contents' => $contents}]};
+ } else {
+ $argument
+ = {'contents' => $contents};
}
- $argument->{'contents'} =
$element->{'args'}->[$arg_index]->{'contents'};
unshift @{$self->{'current_contents'}->[-1]}, ($argument);
}
return '';
@@ -3391,6 +3404,8 @@ sub _convert($$)
set_space_protection($formatter->{'container'}, undef, undef, undef, 1);
} elsif ($element->{'type'} eq '_code') {
_open_code($formatter);
+ } elsif ($element->{'type'} eq '_stop_upper_case') {
+ push @{$formatter->{'upper_case_stack'}}, {};
} elsif ($element->{'type'} eq 'bracketed') {
$result .= _count_added($self, $formatter->{'container'},
add_text($formatter->{'container'}, '{'));
@@ -3424,6 +3439,8 @@ sub _convert($$)
undef, undef, $frenchspacing);
} elsif ($element->{'type'} eq '_code') {
_close_code($formatter);
+ } elsif ($element->{'type'} eq '_stop_upper_case') {
+ pop @{$formatter->{'upper_case_stack'}};
} elsif ($element->{'type'} eq 'bracketed') {
$result .= _count_added($self, $formatter->{'container'},
add_text($formatter->{'container'}, '}'));
diff --git a/tp/t/info_tests.t b/tp/t/info_tests.t
index 87249c8a5c..d14cdf25bb 100644
--- a/tp/t/info_tests.t
+++ b/tp/t/info_tests.t
@@ -989,11 +989,14 @@ Some text.
@printindex cp
'],
-# this test is mostly used to check the output corresponding
+# this test is also used to check the output corresponding
# to the '@sc content' t/nodenormalization.t test, so it should be modified
# if the t/nodenormalization.t test is modified
['commands_in_sc',
-'@sc{a @~n @aa{} @TeX{} @image{myimage} @ref{aref} @verb{!inverb!}
@anchor{inanchor} @hyphenation{hyphena-te} @U{aaaa} @math{ma+th}
@footnote{infootnote}}'],
+'@sc{a @~n @aa{} @TeX{} @image{myimage} @ref{aref} @xref{(f)node}
+@ref{ext,,name,argf} @verb{!inverb!} @anchor{inanchor} @hyphenation{hyphena-te}
+@U{aaaa} @math{ma+th} @footnote{infootnote} @url{la} @url{a,b} @url{ ,lb}
+@url{,,c} @email{a@@c, e} @abbr{ab, d}}'],
);
my @file_tests = (
diff --git a/tp/t/nodenormalization.t b/tp/t/nodenormalization.t
index 9900544cbe..4dba5a8608 100644
--- a/tp/t/nodenormalization.t
+++ b/tp/t/nodenormalization.t
@@ -211,8 +211,15 @@ my $empty_command_node_tree =
$parser->parse_texi_line($empty_command_node_text)
my $empty_command_node_normalized = normalize_node($empty_command_node_tree);
is ($empty_command_node_normalized, '-2', 'node with @today');
-my $effect_of_sc_node_text = '@sc{a @~n @aa{} @TeX{} @image{myimage}
@ref{aref} @verb{!inverb!} @anchor{inanchor} @hyphenation{hyphena-te} @U{aaaa}
@math{ma+th} @footnote{infootnote}}';
+my $effect_of_sc_node_text
+ = '@sc{a @~n @aa{} @TeX{} @image{myimage} @ref{aref} @xref{(f)node}
+@ref{ext,,name,argf} @verb{!inverb!} @anchor{inanchor} @hyphenation{hyphena-te}
+@U{aaaa} @math{ma+th} @footnote{infootnote} @url{la} @url{a,b} @url{ ,lb}
+@url{,,c} @email{a@@c, e} @abbr{ab, d}}'
+;
my $effect_of_sc_node_tree = $parser->parse_texi_line($effect_of_sc_node_text);
my $effect_of_sc_node_normalized = normalize_node($effect_of_sc_node_tree);
-is ($effect_of_sc_node_normalized,
'A-_00d1-_00c5-TeX-MYIMAGE-aref-INVERB-AAAA-MA_002bTH-', '@sc content');
+is ($effect_of_sc_node_normalized,
+
'A-_00d1-_00c5-TeX-MYIMAGE-aref-_0028f_0029node-ext-INVERB-AAAA-MA_002bTH-LA-A-A_0040C-AB',
+ '@sc content');
diff --git a/tp/t/results/info_tests/commands_in_sc.pl
b/tp/t/results/info_tests/commands_in_sc.pl
index 5f8364c6ec..5613314f93 100644
--- a/tp/t/results/info_tests/commands_in_sc.pl
+++ b/tp/t/results/info_tests/commands_in_sc.pl
@@ -122,6 +122,90 @@ $result_trees{'commands_in_sc'} = {
{
'text' => ' '
},
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '('
+ },
+ {
+ 'text' => 'f'
+ },
+ {
+ 'text' => ')'
+ },
+ {
+ 'text' => 'node'
+ }
+ ],
+ 'extra' => {
+ 'manual_content' => [
+ {}
+ ],
+ 'node_content' => [
+ {}
+ ]
+ },
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'xref',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'ext'
+ }
+ ],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ]
+ },
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'name'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'argf'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'ref',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
{
'args' => [
{
@@ -140,7 +224,7 @@ $result_trees{'commands_in_sc'} = {
},
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 2,
'macro' => ''
}
},
@@ -164,7 +248,7 @@ $result_trees{'commands_in_sc'} = {
},
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 2,
'macro' => ''
}
},
@@ -186,12 +270,13 @@ $result_trees{'commands_in_sc'} = {
'cmdname' => 'hyphenation',
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 2,
'macro' => ''
}
},
{
- 'text' => ' ',
+ 'text' => '
+',
'type' => 'spaces_after_close_brace'
},
{
@@ -208,7 +293,7 @@ $result_trees{'commands_in_sc'} = {
'cmdname' => 'U',
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 3,
'macro' => ''
}
},
@@ -229,7 +314,7 @@ $result_trees{'commands_in_sc'} = {
'cmdname' => 'math',
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 3,
'macro' => ''
}
},
@@ -255,7 +340,188 @@ $result_trees{'commands_in_sc'} = {
'cmdname' => 'footnote',
'source_info' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'la'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'url',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'a'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'b'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'url',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'lb'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'url',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+'
+ },
+ {
+ 'args' => [
+ {
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'c'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'url',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'a'
+ },
+ {
+ 'cmdname' => '@'
+ },
+ {
+ 'text' => 'c'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'e'
+ }
+ ],
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'email',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'ab'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'd'
+ }
+ ],
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'abbr',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
'macro' => ''
}
}
@@ -280,11 +546,19 @@ $result_trees{'commands_in_sc'} = {
'type' => 'document_root'
};
$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[9]{'args'}[0]{'extra'}{'node_content'}[0]
=
$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[9]{'args'}[0]{'contents'}[0];
+$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'extra'}{'manual_content'}[0]
=
$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[1];
+$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'extra'}{'node_content'}[0]
=
$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[3];
+$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[13]{'args'}[0]{'extra'}{'node_content'}[0]
=
$result_trees{'commands_in_sc'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[13]{'args'}[0]{'contents'}[0];
-$result_texis{'commands_in_sc'} = '@sc{a @~n @aa{} @TeX{} @image{myimage}
@ref{aref} @verb{!inverb!} @anchor{inanchor} @hyphenation{hyphena-te} @U{aaaa}
@math{ma+th} @footnote{infootnote}}';
+$result_texis{'commands_in_sc'} = '@sc{a @~n @aa{} @TeX{} @image{myimage}
@ref{aref} @xref{(f)node}
+@ref{ext,,name,argf} @verb{!inverb!} @anchor{inanchor} @hyphenation{hyphena-te}
+@U{aaaa} @math{ma+th} @footnote{infootnote} @url{la} @url{a,b} @url{ ,lb}
+@url{,,c} @email{a@@c, e} @abbr{ab, d}}';
-$result_texts{'commands_in_sc'} = 'A N~ AA TeX MYIMAGE AREF inverb AAAA MA+TH
';
+$result_texts{'commands_in_sc'} = 'A N~ AA TeX MYIMAGE AREF (F)NODE
+EXT inverb AAAA MA+TH LA A (B) (LB)
+C E AB (D)';
$result_errors{'commands_in_sc'} = [
{
@@ -305,7 +579,8 @@ $result_floats{'commands_in_sc'} = {};
$result_converted{'info'}->{'commands_in_sc'} = 'This is , produced from .
-A Ñ Å TeX [myimage] *NOTE AREF:: inverb ꪪ MA+TH (1)
+A Ñ Å TeX [myimage] *note aref:: *Note (f)node:: *note NAME: (argf)ext. inverb
ꪪ
+MA+TH (1) <la> B (a) LB c E <a@c> AB (D)
---------- Footnotes ----------
@@ -314,7 +589,7 @@ A Ñ Å TeX [myimage] *NOTE AREF:: inverb ꪪ MA+TH (1)
Tag Table:
-Ref: inanchor41
+Ref: inanchor80
End Tag Table
@@ -344,7 +619,7 @@ $result_converted_errors{'info'}->{'commands_in_sc'} = [
'error_line' => 'warning: @anchor outside of any node
',
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 2,
'macro' => '',
'text' => '@anchor outside of any node',
'type' => 'warning'
@@ -353,7 +628,7 @@ $result_converted_errors{'info'}->{'commands_in_sc'} = [
'error_line' => 'warning: @footnote outside of any node
',
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 3,
'macro' => '',
'text' => '@footnote outside of any node',
'type' => 'warning'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_process_text, new_formatter) (_convert): put upper casing information on a distinct stack, to be able to stop the upper casing context, using an internal type _stop_upper_case. Use it for node and file and *note for @*ref, for @url and @inlineraw.,
Patrice Dumas <=