From 901f4d7f29696df7f8254d58dc35fe7e2947da10 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 8 Jun 2011 18:03:43 -0400 Subject: Improved the whitespace formatting for tweets where there are lots of consecutive new lines --- themes/classic/source/javascripts/twitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/classic/source/javascripts') diff --git a/themes/classic/source/javascripts/twitter.js b/themes/classic/source/javascripts/twitter.js index 2b8a1ec3..676619e1 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+='
  • '+'

    '+''+prettyDate(tweets[t].created_at)+''+linkifyTweet(tweets[t].text.replace(/\n{2}/, '

    ').replace(/\n/, '
    '))+'

    '+'
  • '; + timeline.innerHTML+='
  • '+'

    '+''+prettyDate(tweets[t].created_at)+''+linkifyTweet(tweets[t].text.replace(/\n/g, '
    '))+'

    '+'
  • '; } } function linkifyTweet(text){ -- cgit v1.2.1