From 241885a24f274b41760263a975d100be9e45b2f7 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 10 Apr 2008 05:14:07 +0000 Subject: lang/javascript/vimperator-plugins/trunk/twitter.js: * ステータスが複数行で表示されてしまうので行末から続く空文字をカット git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9244 d0d07461-0603-4401-acd4-de1884942a52 --- twitter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'twitter.js') diff --git a/twitter.js b/twitter.js index 64a972e..ba4cec1 100644 --- a/twitter.js +++ b/twitter.js @@ -42,7 +42,8 @@ border="0"/> {stat.user.name} : {stat.text}
- .toSource(); + .toSource() + .replace(/(?:\r?\n|\r)\s*/g, ''); }); liberator.log(html); liberator.echo(html, true); -- cgit v1.2.3