Help with template for zotero integration

Hi, I have have a bug with my templates for extracting zotero annotation. When I extract annotations and notes using this code (see below), the output is not really that great. There are tabulation issues as you can see in the photo.

In the end, I would like the output to look like this

Thank you for ur help!!!

# Fil du texte

{% macro calloutHeaderSingle(color) -%}
{% if color == "#ffd400" %}
<span style='color: #ffd400;'>Intéressant</span>
{% elif color == "#ff6666" %}
<span style="color: #ff6666;">Désaccord avec l'auteur</span>
{% elif color == "#5fb236" %}
<span style="color: #5fb236;">Référence à lire</span>
{% elif color == "#2ea8e5" %}
<span style="color: #2ea8e5;">Ratio decidendi</span>
{% elif color == "#a28ae5" %}
<span style="color: #a28ae5;">Critique de l'auteur envers la littérature</span>
{% elif color == "#e56eee" %}
<span style="color: #e56eee;">Méthodologie</span>
{% elif color == "#f19837" %}
<span style='color: #f19837;'>Argument</span>
{% elif color == "#aaaaaa" %}
<span style='color: #aaaaaa;'>Vocable, Incompréhension & Compagnie</span>
{% endif %}
{% endmacro %}

{% persist "annotations" %}
{% set annotations = annotations | filterby("date", "dateafter", lastImportDate) -%}
{% if annotations.length > 0 %}
### Imported on {{importDate | format("YYYY-MM-DD h:mm a")}}

{%- for annotation in annotations %}
>[!quote{% if annotation.color %}|{{annotation.color}}{% endif %}] {{calloutHeaderSingle(annotation.color)}}
{%- if annotation.annotatedText or annotation.imageRelativePath or annotation.comment %}
>
{%- endif %}

{%- if annotation.annotatedText %}
> {{annotation.annotatedText|nl2br}} 
{%- if annotation.hashTags %}
([page. {{annotation.pageLabel}}](zotero://open-pdf/library/items/{{annotation.attachment.itemKey}}?page={{annotation.pageLabel}}&annotation={{annotation.id}})) {{annotation.hashTags}}
{%- endif %}
>
{%- endif %}

{%- if annotation.imageRelativePath %}
> ![[{{annotation.imageRelativePath}}]]
>
{%- endif %}

{%- if annotation.ocrText %}
> COMMENT:
> {{annotation.ocrText}}
>
{%- endif %}

{%- if annotation.comment %}
> COMMENT:
> - {{annotation.comment|nl2br}}
{%- endif %}

{%- endfor %}
{% endif %}
{% endpersist %}

I don’t see anything glaringly obvious about the extra line breaks around your callout.
Maybe you could try the possible original first to see if that works: