lib/tw/app/render.rb in tw-0.4.7 vs lib/tw/app/render.rb in tw-0.4.8

- old
+ new

@@ -36,11 +36,13 @@ }.each{|m| STDOUT.puts case format when 'text' user = m.user.kind_of?(Hash) ? "@#{m.user[:from]} > @#{m.user[:to]}" : "@#{m.user}" line = "#{m.time.strftime '[%m/%d %a] (%H:%M:%S)'} #{user} : #{CGI.unescapeHTML m.text}" + line += " #{m.fav_count}Fav" if m.fav_count.to_i > 0 + line += " #{m.rt_count}RT" if m.rt_count.to_i > 0 line += " <#{m.id}>" if show_status_id - line.colorize(/@[a-zA-Z0-9_]+/) + line.colorize(/@[a-zA-Z0-9_]+|\d+RT|\d+Fav/) when 'json' m.to_json else m.format format end