question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New lines are not sent to twitter

See original GitHub issue

When putting new lines in a toot, Mastodon uses <p> tags which are stripped when sending the tweet.

I think one solution is to replace </p><p> with a new line before stripping the other html tags.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
halcycommented, Feb 9, 2017

Yep, though I’d probably trigger on just

tags, no matter what is around them (more robust), anything you see that would speak against doing that?

0reactions
halcycommented, Apr 11, 2017

Fixed by #30

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twitter Support on Twitter: "Sending a Direct Message on http ...
Sending a Direct Message on https://twitter.com/ is fast and fluid. Press enter to send a message; shift + enter to start a new...
Read more >
How to Type Return / Insert Line Breaks on TikTok, Twitter, or ...
Type in the text as you desire and when you're reading to insert a line break, tap on the “123” key at the...
Read more >
How to press 'enter' but do not send the message when using ...
Hold down SHIFT when you hit Enter, and it will create a line break, rather than a hard Send.
Read more >
Code 32 when adding line breaks (%0A) to statuses/update
Hi I'm having a problem when posting a tweet with line breaks inside. The response sends error code 32 : could not authenticate...
Read more >
How do I get newlines in a tweet?
There is no convention for storing newlines in the API and as such there is no reliable way to make newlines appear in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found