[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[8023] parsetexi update
From: |
gavinsmith0123 |
Subject: |
[8023] parsetexi update |
Date: |
Thu, 9 Aug 2018 07:54:31 -0400 (EDT) |
Revision: 8023
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8023
Author: gavin
Date: 2018-08-09 07:54:31 -0400 (Thu, 09 Aug 2018)
Log Message:
-----------
parsetexi update
Modified Paths:
--------------
trunk/tp/parsetexi/separator.c
Modified: trunk/tp/parsetexi/separator.c
===================================================================
--- trunk/tp/parsetexi/separator.c 2018-08-07 19:07:32 UTC (rev 8022)
+++ trunk/tp/parsetexi/separator.c 2018-08-09 11:54:31 UTC (rev 8023)
@@ -691,48 +691,19 @@
k = lookup_extra_key (current, "format");
if (!k)
{
+ ELEMENT *arg = 0;
char *inline_type = 0;
if (current->args.number > 0
- && current->args.list[0]->contents.number > 0)
+ && current->args.list[0]->contents.number > 0
+ && (arg = current->args.list[0]->contents.list[0]))
{
- ELEMENT *args = 0, *arg = 0;
- int i;
- args = current->args.list[0];
- /*
- if (!args)
- goto inline_no_arg;
- if (args->contents.number == 0)
- goto inline_no_arg;
- */
- arg = args->contents.list[0];
- if (!arg)
- goto inline_no_arg; /* Possible if registered as 'undef'. */
-
- /* Find text argument.
- TODO: Should we use trim_spaces_comment_from_content instead?
- Or use a function for this? */
- for (i = 0; i < arg->contents.number; i++)
- {
- enum element_type t = arg->contents.list[i]->type;
- if (arg->contents.list[i]->text.end > 0
- && t != ET_empty_line_after_command
- && t != ET_empty_spaces_after_command
- && t != ET_empty_spaces_before_argument
- && t != ET_empty_space_at_end_def_bracketed
- && t != ET_empty_spaces_after_close_brace)
- break;
- }
- if (i != arg->contents.number)
- {
- inline_type = arg->contents.list[i]->text.text;
- }
+ if (arg->text.end > 0)
+ inline_type = arg->text.text;
}
-
debug ("INLINE <%s>", inline_type);
if (!inline_type)
{
-inline_no_arg:
/* Condition is missing */
debug ("INLINE COND MISSING");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [8023] parsetexi update,
gavinsmith0123 <=