version 1.9, 2019/04/02 15:53:02 |
version 1.12, 2019/04/03 16:08:57 |
Line 98 static const struct element elements[] = { |
|
Line 98 static const struct element elements[] = { |
|
{ "indexterm", NODE_DELETE }, |
{ "indexterm", NODE_DELETE }, |
{ "info", NODE_INFO }, |
{ "info", NODE_INFO }, |
{ "informalequation", NODE_INFORMALEQUATION }, |
{ "informalequation", NODE_INFORMALEQUATION }, |
{ "informaltable", NODE_INFORMALTABLE }, |
{ "informaltable", NODE_TABLE }, |
{ "inlineequation", NODE_INLINEEQUATION }, |
{ "inlineequation", NODE_INLINEEQUATION }, |
{ "itemizedlist", NODE_ITEMIZEDLIST }, |
{ "itemizedlist", NODE_ITEMIZEDLIST }, |
{ "keysym", NODE_KEYSYM }, |
{ "keysym", NODE_KEYSYM }, |
Line 166 static const struct element elements[] = { |
|
Line 166 static const struct element elements[] = { |
|
{ "structname", NODE_STRUCTNAME }, |
{ "structname", NODE_STRUCTNAME }, |
{ "subtitle", NODE_SUBTITLE }, |
{ "subtitle", NODE_SUBTITLE }, |
{ "surname", NODE_PERSONNAME }, |
{ "surname", NODE_PERSONNAME }, |
|
{ "symbol", NODE_CONSTANT }, |
{ "synopsis", NODE_SYNOPSIS }, |
{ "synopsis", NODE_SYNOPSIS }, |
{ "table", NODE_TABLE }, |
{ "table", NODE_TABLE }, |
{ "tbody", NODE_TBODY }, |
{ "tbody", NODE_TBODY }, |
Line 692 parse_file(struct parse *p, int fd, const char *fname) |
|
Line 693 parse_file(struct parse *p, int fd, const char *fname) |
|
/* Parse an attribute value. */ |
/* Parse an attribute value. */ |
|
|
if (in_arg) { |
if (in_arg) { |
if (in_quotes == 0 && b[pend] == '"') { |
if (in_quotes == 0 && |
in_quotes = 1; |
(b[pend] == '\'' || b[pend] == '"')) { |
|
in_quotes = b[pend] == '"' ? 2 : 1; |
p->ncol++; |
p->ncol++; |
pend++; |
pend++; |
continue; |
continue; |
} |
} |
if (advance(p, b, rlen, &pend, |
if (advance(p, b, rlen, &pend, |
in_quotes ? "\"" : " >") && rsz > 0) |
in_quotes == 2 ? "\"" : |
|
in_quotes == 1 ? "'" : " >") && rsz > 0) |
break; |
break; |
in_arg = in_quotes = elem_end = 0; |
in_arg = in_quotes = elem_end = 0; |
if (b[pend] == '>') { |
if (b[pend] == '>') { |