summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-18 23:11:34 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-18 23:11:34 -0700
commit32abf27635068757a084f9a959d21413ab212793 (patch)
treec305a5bee11b94d15086b85391d479a016dce1dd
parentdb7434f4b164738a3a3fde15b0c610053c9f3a5f (diff)
parse_inline: Correctly move to last inline.
-rw-r--r--src/inlines.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c
index b530c02..10ef834 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -844,6 +844,10 @@ static int parse_inline(subject* subj, node_inl ** first, node_inl ** last)
} else if (new) {
append_inlines(*last, new);
*last = new;
+ while (new->next) {
+ new = new->next;
+ *last = new;
+ }
}
return 1;