diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-12-03 16:36:34 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-12-12 21:49:51 +0100 |
commit | 13ab48a7c444ffd28a5655b8f80aa4479dcdc58a (patch) | |
tree | 2f472d7065cb2e88b43b70e00c361edfc0cd836a /mediagoblin | |
parent | 6af6bc05bbd3c54ca242cbda0e74c62b023fe629 (diff) | |
download | mediagoblin-13ab48a7c444ffd28a5655b8f80aa4479dcdc58a.tar.lz mediagoblin-13ab48a7c444ffd28a5655b8f80aa4479dcdc58a.tar.xz mediagoblin-13ab48a7c444ffd28a5655b8f80aa4479dcdc58a.zip |
Fix spacing in links to attachment files.
We had """<a href="abc.dat"> abc.dat</a>""" (note the
apace). And this space is being rendered as a link by
browsers. This looks strange, really.
So fix the spacing.
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/attachments.html | 4 | ||||
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/templates/mediagoblin/edit/attachments.html b/mediagoblin/templates/mediagoblin/edit/attachments.html index 31084c30..6e7da0a1 100644 --- a/mediagoblin/templates/mediagoblin/edit/attachments.html +++ b/mediagoblin/templates/mediagoblin/edit/attachments.html @@ -46,8 +46,8 @@ <li> <a target="_blank" href="{{ request.app.public_store.file_url( attachment['filepath']) }}"> - {{ attachment.name -}} - </a><br /> + {{- attachment.name -}} + </a> </li> {% endfor %} </ul> diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index b870a8ae..8c2a618d 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -173,7 +173,7 @@ {% for attachment in media.attachment_files %} <li> <a href="{{ request.app.public_store.file_url(attachment.filepath) }}"> - {{ attachment.name }} + {{- attachment.name -}} </a> </li> {% endfor %} |