Skip to content

Commit 5b1f9d8

Browse files
committed
Fix rebase issues
1 parent dd35354 commit 5b1f9d8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ext/liquid_c/block.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,18 +401,14 @@ static VALUE block_body_parse_from_source(VALUE self, block_body_t *body, VALUE
401401
markup = tag_markup_get_markup(unknown_tag);
402402
block_body_push_tag_markup(body, parse_context_obj, unknown_tag);
403403

404-
if (RTEST(parse_context.parent_tag)) {
404+
if (RTEST(parse_context.parent_tag) && !body->as.intermediate.bound_to_tag) {
405+
body->as.intermediate.bound_to_tag = true;
405406
tag_markup_set_block_body(parse_context.parent_tag, self, body);
406407
}
407408
}
408409

409410
VALUE block_ret = rb_yield_values(2, tag_name, markup);
410411

411-
if (RTEST(parse_context.parent_tag) && !body->as.intermediate.bound_to_tag) {
412-
body->as.intermediate.bound_to_tag = true;
413-
tag_markup_set_block_body(parse_context.parent_tag, self, body);
414-
}
415-
416412
return block_ret;
417413
}
418414

0 commit comments

Comments
 (0)