diff options
author | mattn | 2008-11-11 04:08:09 +0000 |
---|---|---|
committer | mattn | 2008-11-11 04:08:09 +0000 |
commit | 843cf3a2d77909513d967aa4ca3b94c446e42faa (patch) | |
tree | 2d24c10779a011ab4f274bcad08af5f74faffc1d /twitter.js | |
parent | 357a941e87c6a6525edf04a607537f3eebec146e (diff) | |
download | vimperator-plugins-843cf3a2d77909513d967aa4ca3b94c446e42faa.tar.bz2 |
status.textに&があるとテキスト展開されていたのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23217 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r-- | twitter.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ // Vimperator plugin: "Update Twitter"
-// Last Change: 22-Oct-2008. Jan 2008
+// Last Change: 11-Nov-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
@@ -100,7 +100,7 @@ var html = <style type="text/css"><![CDATA[
span.twitter.entry-content a { text-decoration: none; }
- img.twitter.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
+ img.twitter.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; margin: 1px; }
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
@@ -110,9 +110,9 @@ title={status.user.screen_name}
class="twitter photo"/>
<strong>{status.user.name}‬</strong>
+ : <span class="twitter entry-content">{status.text}</span>
</>.toSource()
- .replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
- sprintf(': <span class="twitter entry-content">%s‬</span>', status.text))
+ .replace(/(?:\r?\n|\r)[ \t]*/g, " "))
.join("<br/>");
//liberator.log(html);
|