From cbc35501a62773013c04a463bc99b44515a5a5bc Mon Sep 17 00:00:00 2001 From: Andrew Drozdov Date: Sun, 14 Feb 2016 20:41:16 -0500 Subject: [PATCH] Replace new lines in print_csv_tweet. New lines were not being replaced in csv mode, causing funky output. --- lib/t/printable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/t/printable.rb b/lib/t/printable.rb index da6ae1b3..80428250 100644 --- a/lib/t/printable.rb +++ b/lib/t/printable.rb @@ -44,7 +44,7 @@ def print_csv_list(list) def print_csv_tweet(tweet) require 'csv' - say [tweet.id, csv_formatted_time(tweet), tweet.user.screen_name, decode_full_text(tweet, options['decode_uris'])].to_csv + say [tweet.id, csv_formatted_time(tweet), tweet.user.screen_name, decode_full_text(tweet, options['decode_uris']).gsub(/\n+/, ' ')].to_csv end def print_csv_user(user)