// Adjust the properties
free(f->label_text);
f->label_text = f->clean_text;
- f->clean_text = clean_string_from_range(e->dstr->str, f->content->child->next->next->start, block->start + block->len - f->content->child->next->next->start, false);
-
+ if (f->content->child->next->next) {
+ f->clean_text = clean_string_from_range(e->dstr->str, f->content->child->next->next->start, block->start + block->len - f->content->child->next->next->start, false);
+ } else {
+ f->clean_text = NULL;
+ }
stack_push(e->abbreviation_stack, f);
break;
case BLOCK_DEF_CITATION: