Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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

Your Answer


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.