We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e9294 commit dd35354Copy full SHA for dd35354
ext/liquid_c/block.c
@@ -486,7 +486,10 @@ static VALUE block_body_blank_p(VALUE self)
486
{
487
block_body_t *body;
488
BlockBody_Get_Struct(self, body);
489
- if (body->compiled) {
+ if (body->from_serialize) {
490
+ block_body_header_t *body_header = document_body_get_block_body_header_ptr(&body->as.serialize.document_body_entry);
491
+ return BLOCK_BODY_HEADER_BLANK_P(body_header) ? Qtrue : Qfalse;
492
+ } else if (body->compiled) {
493
block_body_header_t *body_header = document_body_get_block_body_header_ptr(&body->as.compiled.document_body_entry);
494
return BLOCK_BODY_HEADER_BLANK_P(body_header) ? Qtrue : Qfalse;
495
} else {
0 commit comments