From c2b98d87e55d952e6d725e107120fb2b798501a7 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Fri, 20 Feb 2015 18:11:14 +0100 Subject: [PATCH] exclude content from {% spaceless %} see: https://github.com/nephila/djangocms-blog/issues/87 --- djangocms_blog/templates/djangocms_blog/post_detail.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/djangocms_blog/templates/djangocms_blog/post_detail.html b/djangocms_blog/templates/djangocms_blog/post_detail.html index 0434823..f619391 100644 --- a/djangocms_blog/templates/djangocms_blog/post_detail.html +++ b/djangocms_blog/templates/djangocms_blog/post_detail.html @@ -42,10 +42,11 @@ {{ post.main_image.default_alt_text }} {% endif %} + {% endspaceless %} {% if use_placeholder %}
{% render_placeholder post.content %}
{% else %}
{% render_model post "post_text" "post_text" %}
{% endif %} -{% endspaceless %}{% endblock content_blog %} +{% endblock content_blog %}