summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yxml.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/yxml.c b/yxml.c
index d16d070..c7e6d44 100644
--- a/yxml.c
+++ b/yxml.c
@@ -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);