diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-17 23:55:49 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-17 23:57:41 +0100 |
commit | 4637d50cfc003d638796a581f1ea8df16da879c0 (patch) | |
tree | 18f2673398cfb4bc59b1f752a94a6625c4d582be | |
parent | 7341cc8e34a86006ba73756d78edfd858f1e451d (diff) | |
download | mediagoblin-4637d50cfc003d638796a581f1ea8df16da879c0.tar.lz mediagoblin-4637d50cfc003d638796a581f1ea8df16da879c0.tar.xz mediagoblin-4637d50cfc003d638796a581f1ea8df16da879c0.zip |
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.
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 10b48296..0d1177b8 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -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 %} |