removed <p> Tags to guarantee vaild HTML output.

This commit is contained in:
2018-05-04 12:59:38 +02:00
parent a2df81d62e
commit a10b2706c3
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@
{% endif %}
</p>
<p>{{event.description|truncatewords_html:20|safe}}</p>
{{event.description|truncatewords_html:20|safe}}
<ul class="info">
<li><span class="fa fa-map-marker" title="{% trans 'Location' %}"></span> {{ event.location }}</li>
<li><span class="fa fa-comments" title="{% trans 'Comments' %}"></span> <a href="{{event.get_absolute_url}}#comments">{{ comment_count }}</a></li>

View File

@@ -36,7 +36,7 @@
<a href="{{event.get_absolute_url}}#comments">{{ comment_count }}</a>
</li>
</ul>
<p>{{event.description|truncatewords_html:25|safe}}</p>
{{event.description|truncatewords_html:25|safe}}
</div>
{% if forloop.counter|divisibleby:2 %}<br class="clear">{% endif %}
{% endfor %}