Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is there a reliable way to make newlines appear in a tweet?

The twitter website accepts them in the "Compose new tweet" box, but they don't show up in the stream.

The server receives them and stores them. When I look at the JSON the website receives, they are still there.

Some clients obviously manage to get newlines right, I've seen tweets (even on the website) that contain them.

So… what can I do to produce them myself?

share|improve this question
3  
Can you give us a link to a tweet that you saw having the new line on twitter's site?! Because I think it's up to the client to actually show that, but I don't think that they are showing new lines on the official site.. –  Lipis Mar 15 '12 at 11:37
    
@Lipis Not right now. Maybe I remember it from the "old" Website? I've not seen any for a while, I must admit. –  Tomalak Mar 15 '12 at 12:49
add comment

1 Answer

up vote 4 down vote accepted

There is no convention for storing newlines in the API and as such there is no reliable way to make newlines appear in all Twitter clients.

New lines do not appear in all most official clients

  • Mobile, Web, iOS

There used to be a point in which it is was somewhat supported but this is no more.

share|improve this answer
    
Aww, this sucks. It's not that this would be a hard thing to implement. As I said, the very JSON they send over the wire still contains all newline characters. I am disappoint. –  Tomalak Mar 15 '12 at 16:06
    
I'm sure there are a few clients that handle the line breaks, but they are in the minority. –  phwd Mar 15 '12 at 16:16
    
Yeah. TweetBot does it, for example. But unless everybody can see it, it would be pointless anyway. –  Tomalak Mar 15 '12 at 16:33
    
The official Mac client supports them. –  Alex Mar 15 '12 at 17:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.