version 1.9, 2019/04/02 15:53:02 |
version 1.10, 2019/04/03 11:23:48 |
Line 692 parse_file(struct parse *p, int fd, const char *fname) |
|
Line 692 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] == '>') { |