aboutsummaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-29 13:01:55 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-29 13:01:55 -0800
commite7efe2af56ceae5df00f23bb6090c81bb734bb5c (patch)
treefe8cff41001a17afd4d78b9ecbf1be303b3b31cf /src/node.c
parent5d16af6b134477d0e9b281cd1e9d962dc52b5088 (diff)
parent1d564e1fa3e8035bd9468a2f82348315b2e7b324 (diff)
Merge pull request #227 from nwellnhof/process_emph
Optimize and clarify process_emph
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 4054881..fd92fdc 100644
--- a/src/node.c
+++ b/src/node.c
@@ -607,6 +607,11 @@ cmark_node_check(cmark_node *node, FILE *out)
cur = node;
while (true) {
if (cur->first_child) {
+ if (cur->first_child->prev != NULL) {
+ S_print_error(out, cur->first_child, "prev");
+ cur->first_child->prev = NULL;
+ ++errors;
+ }
if (cur->first_child->parent != cur) {
S_print_error(out, cur->first_child, "parent");
cur->first_child->parent = cur;