texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[8416] no @indent @noindent in %in_full_text_commands


From: gavinsmith0123
Subject: [8416] no @indent @noindent in %in_full_text_commands
Date: Fri, 26 Oct 2018 16:59:06 -0400 (EDT)

Revision: 8416
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8416
Author:   gavin
Date:     2018-10-26 16:59:05 -0400 (Fri, 26 Oct 2018)
Log Message:
-----------
no @indent @noindent in %in_full_text_commands

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/NEWS
    trunk/tp/Texinfo/Parser.pm

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2018-10-26 20:42:48 UTC (rev 8415)
+++ trunk/ChangeLog     2018-10-26 20:59:05 UTC (rev 8416)
@@ -1,5 +1,12 @@
 2018-10-26  Gavin Smith  <address@hidden>
 
+       * tp/Texinfo/Parser.pm (%in_full_text_commands): Do not
+       allow @indent, @noindent.
+       (%in_full_line_commands): No exception for @indent, @noindent.
+       * NEWS: Mention change in allowed nesting.
+
+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 

Modified: trunk/NEWS
===================================================================
--- trunk/NEWS  2018-10-26 20:42:48 UTC (rev 8415)
+++ trunk/NEWS  2018-10-26 20:59:05 UTC (rev 8416)
@@ -19,12 +19,14 @@
   . some code changed to stop warnings being given by newer versions of Perl
   . the newline after an @insertcopying is not output
   . warning given for @multitable prototypes not in braces
+  . @indent and @noindent are not allowed inside the arguments to
+    commands where they are not meaningful
   . @ctrl is no longer recognised (it was a way to insert literal
     control characters in Info files, but deprecated since about the 
     time of Texinfo version 2)
   . @quote-arg and @allow-recursion are not recognised (these two used
     to be recognised by makeinfo in macro definitions but were never 
-    implemented in texinfo.tex).
+    implemented in texinfo.tex)
   . `FIX_TEXINFO' removed as a customization variable
 
 

Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm  2018-10-26 20:42:48 UTC (rev 8415)
+++ trunk/tp/Texinfo/Parser.pm  2018-10-26 20:59:05 UTC (rev 8416)
@@ -365,13 +365,13 @@
 $in_accent_commands{'c'} = 1;
 $in_accent_commands{'comment'} = 1;
 
-# commands that may appear in texts arguments
+# commands that may appear in text arguments
 my %in_full_text_commands;
 foreach my $command (keys(%brace_commands), keys(%no_brace_commands)) {
   $in_full_text_commands{$command} = 1;
 }
-foreach my $in_full_text_command ('c', 'comment', 'refill', 'noindent',
-                         'indent', 'columnfractions', 'set', 'clear', 'end') {
+foreach my $in_full_text_command ('c', 'comment', 'refill',
+                         'columnfractions', 'set', 'clear', 'end') {
   $in_full_text_commands{$in_full_text_command} = 1;
 }
 
@@ -389,9 +389,6 @@
 # commands that may happen on lines where everything is
 # permitted
 my %in_full_line_commands = %in_full_text_commands;
-foreach my $not_in_full_line_commands('noindent', 'indent') {
-  delete $in_full_line_commands{$not_in_full_line_commands};
-}
 
 # commands that may happen on sectioning commands 
 my %in_full_line_commands_no_refs = %in_full_line_commands;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]