]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ticket 2271: extra whitespace in underlined link for username in notice lists
authorBrion Vibber <brion@pobox.com>
Fri, 2 Apr 2010 16:32:03 +0000 (09:32 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 2 Apr 2010 16:34:42 +0000 (09:34 -0700)
Switching to a raw() output for the <span> of the nickname removes the extra whitespace and fixes display.

lib/noticelist.php

index 0d4cd4dd91c7d87ab68a89065be58121b1f345fc..83c8de9f6e0ac3b573846ea92016858d8cd3e187 100644 (file)
@@ -340,8 +340,9 @@ class NoticeListItem extends Widget
 
     function showNickname()
     {
-        $this->out->element('span', array('class' => 'nickname fn'),
-                            $this->profile->nickname);
+        $this->out->raw('<span class="nickname fn">' .
+                        htmlspecialchars($this->profile->nickname) .
+                        '</span>');
     }
 
     /**