removed <p> Tags to guarantee vaild HTML output.

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

View File

@@ -52,7 +52,7 @@
{% endif %} {% endif %}
</p> </p>
<p>{{event.description|truncatewords_html:20|safe}}</p> {{event.description|truncatewords_html:20|safe}}
<ul class="info"> <ul class="info">
<li><span class="fa fa-map-marker" title="{% trans 'Location' %}"></span> {{ event.location }}</li> <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> <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> <a href="{{event.get_absolute_url}}#comments">{{ comment_count }}</a>
</li> </li>
</ul> </ul>
<p>{{event.description|truncatewords_html:25|safe}}</p> {{event.description|truncatewords_html:25|safe}}
</div> </div>
{% if forloop.counter|divisibleby:2 %}<br class="clear">{% endif %} {% if forloop.counter|divisibleby:2 %}<br class="clear">{% endif %}
{% endfor %} {% endfor %}