texinfo-commits
[Top][All Lists]
Advanced

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

[6829] parsetexi no start paragraph commands


From: Gavin D. Smith
Subject: [6829] parsetexi no start paragraph commands
Date: Thu, 03 Dec 2015 10:06:16 +0000

Revision: 6829
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6829
Author:   gavin
Date:     2015-12-03 10:06:14 +0000 (Thu, 03 Dec 2015)
Log Message:
-----------
parsetexi no start paragraph commands

Modified Paths:
--------------
    trunk/parsetexi/parser.c

Modified: trunk/parsetexi/parser.c
===================================================================
--- trunk/parsetexi/parser.c    2015-12-02 23:11:29 UTC (rev 6828)
+++ trunk/parsetexi/parser.c    2015-12-03 10:06:14 UTC (rev 6829)
@@ -978,8 +978,18 @@
       /* 4233 invalid nestings */
 #endif
 
-      /* 4276 check if begins or ends a paragraph */
-      if (!(command_data(cmd).flags & (CF_misc | CF_block)))
+      /* 4276 check command doesn't start a paragraph */
+      /* TODO store this in cmd->flags */
+      if (!(command_data(cmd).flags & (CF_misc | CF_block)
+            || cmd == CM_titlefont
+            || cmd == CM_caption
+            || cmd == CM_shortcaption
+            || cmd == CM_image
+            || cmd == CM_ASTERISK /* @* */
+            || cmd == CM_hyphenation
+            || cmd == CM_anchor
+            || cmd == CM_errormsg
+            || (command_data(cmd).flags & CF_index_entry_command)))
           {
           /*
              Unless no paragraph commands (line 311):




reply via email to

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