Fix spacing in links to attachment files.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 3 Dec 2012 15:36:34 +0000 (16:36 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 12 Dec 2012 20:49:51 +0000 (21:49 +0100)
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.

mediagoblin/templates/mediagoblin/edit/attachments.html
mediagoblin/templates/mediagoblin/user_pages/media.html

index 31084c30cda1efb4a2bff7e7e1173c6c30d857e4..6e7da0a1a53568e10819b0a2bea01b636671968d 100644 (file)
@@ -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>
index b870a8aea1065d099adb9f2f39746e5bd3ec698b..8c2a618dfa30411451acf7911b0193c2ce5d6882 100644 (file)
         {% for attachment in media.attachment_files %}
           <li>
             <a href="{{ request.app.public_store.file_url(attachment.filepath) }}">
-              {{ attachment.name }}
+              {{- attachment.name -}}
             </a>
           </li>
         {% endfor %}