Remove useless spaces in comment stuff.
When rendering a comment, we had a lot of whitespace. And some of it made it into the rendered page: """<a href=...>abc </a>""" the trailing space gets rendered and looks ugly.
This commit is contained in:
parent
7341cc8e34
commit
4637d50cfc
@ -127,20 +127,20 @@
|
||||
<img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
|
||||
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||
user = comment_author.username) }}">
|
||||
{{ comment_author.username -}}
|
||||
{{- comment_author.username -}}
|
||||
</a>
|
||||
{% trans %}at{% endtrans %}
|
||||
<a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
|
||||
comment = comment.id,
|
||||
user = media.get_uploader.username,
|
||||
media = media.slug_or_id) }}#comment">
|
||||
{{ comment.created.strftime("%I:%M%p %Y-%m-%d") }}
|
||||
{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}
|
||||
</a>:
|
||||
</div>
|
||||
<div class="comment_content">
|
||||
{% autoescape False %}
|
||||
{% autoescape False -%}
|
||||
{{ comment.content_html }}
|
||||
{% endautoescape %}
|
||||
{%- endautoescape %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user