[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[8415] set %simple_text_commands from %brace_commands
From: |
gavinsmith0123 |
Subject: |
[8415] set %simple_text_commands from %brace_commands |
Date: |
Fri, 26 Oct 2018 16:42:49 -0400 (EDT) |
Revision: 8415
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8415
Author: gavin
Date: 2018-10-26 16:42:48 -0400 (Fri, 26 Oct 2018)
Log Message:
-----------
set %simple_text_commands from %brace_commands
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/Texinfo/Parser.pm
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2018-10-26 19:48:33 UTC (rev 8414)
+++ trunk/ChangeLog 2018-10-26 20:42:48 UTC (rev 8415)
@@ -1,5 +1,13 @@
-2018-10-25 Gavin Smith <address@hidden>
+2018-10-26 Gavin Smith <address@hidden>
+ * tp/Texinfo/Parser.pm (%simple_text_commands): Add all the
+ commands that have a number >= 1 as their argument type in
+ %brace_commands, except for inline conditional commands. This
+ includes @inforef which wasn't included before. This leaves
+ only @shortcaption and @math as explicitly listed commands.
+
+2018-10-26 Gavin Smith <address@hidden>
+
* tp/Texinfo/Parser.pm (%no_command_commands): Remove this list
of commands that shouldn't contain any other commands. Although
it is valid, it makes the picture of which commands can contain
Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm 2018-10-26 19:48:33 UTC (rev 8414)
+++ trunk/tp/Texinfo/Parser.pm 2018-10-26 20:42:48 UTC (rev 8415)
@@ -431,14 +431,14 @@
delete $simple_text_commands{'exdent'};
foreach my $command (keys (%brace_commands)) {
- if ($brace_commands{$command} eq '1') {
+ if ($brace_commands{$command} =~ /\d/
+ and $brace_commands{$command} > 0
+ and !$inline_conditional_commands{$command}) {
$simple_text_commands{$command} = 1;
}
}
-foreach my $command ('xref','ref', 'pxref',
- 'inforef', 'shortcaption', 'math', 'indicateurl',
- 'email', 'uref', 'url', 'image', 'abbr', 'acronym') {
+foreach my $command ('shortcaption', 'math') {
$simple_text_commands{$command} = 1;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [8415] set %simple_text_commands from %brace_commands,
gavinsmith0123 <=