text->child->next->len++;
}
- mmd_export_token_tree_odf(out, source, text->child, scratch);
+ if (text && text->child) {
+ mmd_export_token_tree_odf(out, source, text->child, scratch);
+ }
print_const("</text:a>");
}
text->child->next->len++;
}
- mmd_export_token_tree_latex(out, source, text->child, scratch);
+ if (text && text->child) {
+ mmd_export_token_tree_latex(out, source, text->child, scratch);
+ }
print_const("}");
text->child->next->len++;
}
- if (text) {
+ if (text && text->child) {
mmd_export_token_tree_opendocument(out, source, text->child, scratch);
}