File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
jinja2/qfdmo/acteur/tabs/sections Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
from django .http import HttpRequest
5
5
from django .templatetags .static import static
6
6
from django .urls import reverse
7
+ from django .utils .html import linebreaks
7
8
8
9
from core .templatetags .seo_tags import get_sharer_content
9
10
from core .utils import get_direction
@@ -77,4 +78,5 @@ def environment(**options):
77
78
),
78
79
}
79
80
)
81
+ env .filters .update ({"linebreaks" : linebreaks })
80
82
return env
Original file line number Diff line number Diff line change 5
5
{% endblock title %}
6
6
7
7
{% block content %}
8
- {{ object.description }}
8
+ {{ object.description|linebreaks|safe }}
9
9
{% endblock content %}
Original file line number Diff line number Diff line change 12
12
</ p >
13
13
{% endif %}
14
14
15
- {% if object.uniquement_sur_rdv and object.horaires_description|safe %}
15
+ {% if object.uniquement_sur_rdv and object.horaires_description %}
16
16
{% include "qfdmo/acteur/tabs/_separator.html" %}
17
17
{% endif %}
18
18
19
- {{ object.horaires_description|replace("\n", " < br > ") |safe }}
19
+ {{ object.horaires_description|linebreaks |safe }}
20
20
</ div >
21
21
{% endblock content %}
You can’t perform that action at this time.
0 commit comments