Doug Burke committed e5caf14

QuickDump: protect new lines in tweets

Comments (0)

Files changed (1)

 where flag is the tweetid if it is a retweet or n/a if it is
 a tweet.
+newlines in the output text are replaced by the string \n
 module Main (main) where
                            , case f of
                                Nothing -> "n/a"
                                Just (TID rid) -> show rid
-                           , T.unpack txt]
+                           , T.unpack (T.replace "\n" "\\n" txt)]
 fromTweet :: Status -> (TweetId, TweetInfo)
 fromTweet Status {..} =