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') }}" />
|
<img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
|
||||||
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||||
user = comment_author.username) }}">
|
user = comment_author.username) }}">
|
||||||
{{ comment_author.username -}}
|
{{- comment_author.username -}}
|
||||||
</a>
|
</a>
|
||||||
{% trans %}at{% endtrans %}
|
{% trans %}at{% endtrans %}
|
||||||
<a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
|
<a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
|
||||||
comment = comment.id,
|
comment = comment.id,
|
||||||
user = media.get_uploader.username,
|
user = media.get_uploader.username,
|
||||||
media = media.slug_or_id) }}#comment">
|
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>:
|
</a>:
|
||||||
</div>
|
</div>
|
||||||
<div class="comment_content">
|
<div class="comment_content">
|
||||||
{% autoescape False %}
|
{% autoescape False -%}
|
||||||
{{ comment.content_html }}
|
{{ comment.content_html }}
|
||||||
{% endautoescape %}
|
{%- endautoescape %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user