diff options
Diffstat (limited to 'themes/classic/source/javascripts')
-rw-r--r-- | themes/classic/source/javascripts/twitter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/classic/source/javascripts/twitter.js b/themes/classic/source/javascripts/twitter.js index eda13c93..2b8a1ec3 100644 --- a/themes/classic/source/javascripts/twitter.js +++ b/themes/classic/source/javascripts/twitter.js @@ -26,7 +26,7 @@ function showTwitterFeed(tweets, twitter_user){ var timeline = document.getElementById('tweets'); timeline.innerHTML=''; for (t in tweets){ - timeline.innerHTML+='<li>'+'<p>'+'<a href="http://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'">'+prettyDate(tweets[t].created_at)+'</a>'+linkifyTweet(tweets[t].text)+'</p>'+'</li>'; + timeline.innerHTML+='<li>'+'<p>'+'<a href="http://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'">'+prettyDate(tweets[t].created_at)+'</a>'+linkifyTweet(tweets[t].text.replace(/\n{2}/, '</p><p>').replace(/\n/, '<br>'))+'</p>'+'</li>'; } } function linkifyTweet(text){ |