diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-08 18:03:43 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-08 18:03:43 -0400 |
commit | 901f4d7f29696df7f8254d58dc35fe7e2947da10 (patch) | |
tree | e9d79d89c8e01e4a523ff94d9044c871b72eb4f5 /themes | |
parent | 51d1821930318fd0e6888577e28419dba35c8b36 (diff) | |
download | my_new_personal_website-901f4d7f29696df7f8254d58dc35fe7e2947da10.tar.xz my_new_personal_website-901f4d7f29696df7f8254d58dc35fe7e2947da10.zip |
Improved the whitespace formatting for tweets where there are lots of
consecutive new lines
Diffstat (limited to 'themes')
-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 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+='<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>'; + 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/g, '<br>'))+'</p>'+'</li>'; } } function linkifyTweet(text){ |