Add CR/LF in notification

Hello there,

I’m trying to send myself a notification about my event of tomorrow, using the new feature of 2023.7

Here is my code (for 2400 hours, I’ll reduce later when it is working)

alias: Agenda  Olivier - demain
sequence:
  - service: calendar.list_events
    data:
      start_date_time: |-
        {% import 'date.jinja' as dt %}
        {{ dt.demain() }}
      duration:
        hours: 2400
        minutes: 0
        seconds: 0
    target:
      entity_id: calendar.olivier
    response_variable: olivier
  - service: persistent_notification.create
    data:
      title: Calendrier Olivier
      message: |-
        {%- set ns = namespace(events=[]) %}
        {%- for event in olivier.events %}
          {%- set default_time = "00:00:00Z" %}
          {%- set date_format = "%Y-%m-%dT%H:%M:%S%z" %}
          {%- set datetime_var = strptime(event.start if "T" in event.start else event.start + "T" + default_time, date_format) %}
          {%- set heure = datetime_var.strftime("%H:%M ") if "T" in event.start else "" %}
          {%- set ev = heure + event.summary  %}
          {%- set ns.events = ns.events + [ ev ] %}
        {%- endfor %}
        {%- if ns.events == [] %}
          Aucun evènement
        {%- else %}
          {{ ns.events }}
        {%- endif %}
mode: single
icon: mdi:calendar-alert-outline

The result is almost what I want:

Calendrier Olivier

[‘Anniversaire Yasmine’, ‘Anniversaire Papa’, ‘15:20 Opthalmo Chloé’, ‘15:40 Opthalmo Maxime’, ‘16:00 Opthalmo Olivier’, ‘Arrivée de Tara’, ‘13:06 Anniversaire Maxime’]

I understand that the code is using an array and that I’m adding events to the array.
Now I’d like to convert this to a list, one event per line.
I know that I’ve to replace the line

          {{ ns.events }}

by something else, but what?

Reply to myself:

{{ ns.event | join('\n') }}