no need to use br tags on blog posts

This commit is contained in:
cube
2026-04-03 01:34:35 +01:00
parent 8b78fa2480
commit ab734d7ef1
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<div class="title">{{post[3]|safe}}</div>
<div class="timestamp">{{ get_datetime_str(post[2]) }} - <a href="{{ url_for('home.page', mid=post[1]) }}">{{op[3]}}</a> {% if g.user %}{% if op[9]==0 %}(Private){% else %}(Public)</b>{% endif %}{% endif %}</div>
<div class="content">
{{post[4]|safe}}
{{post[4].replace('\n', '<br>')|safe}}
</div>
<br class="clear" />
{% if g.user %}

View File

@@ -37,7 +37,7 @@
<div class="title">{{post[3]|safe}}</div>
<div class="timestamp">{{post[2]}} {% if g.user %}{% if post[5]==0 %}(Private){% else %}(Public){% endif %}{% endif %}</div>
<div class="content">
{{post[4]|safe}}
{{post[4].replace('\n', '<br>')|safe}}
</div>
{% if g.user %}<a href="{{url_for('blog.toggle',pid=post[0], location=member[0])}}">Toggle privacy</a> | <a href="{{url_for('blog.edit',pid=post[0],location=member[0])}}">Edit Post</a> | <a href="{{url_for('blog.delete', pid=post[0], location=member[0])}}" class="danger">Delete post</a>{% endif %}
</div>