Fix bug: can handle empty text nodes in Xournal++

This commit is contained in:
Joeri Exelmans 2023-05-04 11:52:50 +02:00
parent 236f52c7dd
commit f6f90171a5

View file

@ -43,7 +43,7 @@ description <{{output_namespace}}#> as {{shorthand}} {
]
{%- for el_index, el in enumerate(layer.elements) %}
{%- if not minimal or el.__class__.__name__ == "Text" %}
{%- if not minimal or el.__class__.__name__ == "Text" and el.text != None %}
ci p{{page_index}}l{{layer_index}}e{{el_index}} : xopp:{{el.__class__.__name__}} [
xopp:hasText {{el.text | to_oml_string_literal}}