Open al45tair opened 1 year ago
Strange, on my end it works fine:
I would imagine (I haven't checked) that Pleroma is generating text with just an LF
character rather than CR-LF
. It's probably a Pleroma bug (since HTML and XML are supposed to have CR-LF
line endings, right?) but nevertheless it might make sense for the Mastodon client to adhere to the "liberal in what it accepts" principle.
Official Android app for Mastodon properly shows newlines from Pleroma. Maybe #1060 relates this issue.
Pleroma uses <br/>
(without spaces) for newlines while Mastodon uses <br />
(with a space). MetaTextKit accepts only <br>
and <br />
. I have made a PR for MetaTextKit.
@kimar
A possible fix for this issue has been merged into MetaTextKit. Could you merge it to the mastodon/MetaTextKit
fork and test it?
https://github.com/TwidereProject/MetaTextKit/pull/8
Thank you @taku0 for the heads-up. I'm relaying this to @whattherestimefor as I'm not actively developing for Mastodon for iOS anymore.
Is there an existing issue for this?
Current Behavior
If you post in Pleroma a message that includes newlines, for instance:
then the Mastodon app displays the post as
It clearly displays newlines from Mastodon toots properly. My guess is that this might be an LF vs CR-LF issue?
Expected Behavior
Messages with newlines should show up correctly.
Steps To Reproduce
Environment
Anything else?