AmauryCarrade / MastodonToTwitter

Mastodon <-> Twitter cross-poster.
MIT License
250 stars 41 forks source link

New lines are not sent to twitter #8

Closed Aldarone closed 7 years ago

Aldarone commented 7 years ago

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.

halcy commented 7 years ago

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?

Aldarone commented 7 years ago

I think the only tag used are p and a so it should be ok.

gjorando commented 7 years ago

I made a PR that fixes this issue.

Spaxe commented 7 years ago

30

halcy commented 7 years ago

Fixed by #30