diff options
-rw-r--r-- | yxml.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -107,9 +107,7 @@ int process(char *fn, yxml_t *state) { break; case YXML_ELEMEND: - // Since article-title should not be nested, - // we don't have to check the element name here. - if (inarticletitle && intitlegroup) { + if (inarticletitle && !strcmp(state->elem, "title-group")) { inarticletitle = 0; intitlegroup = 0; printf("%s\n", contentbuf->buffer); |