Don't strip newlines in pre #709

Merged
floatingghost merged 1 commit from snan/akkoma:pre into develop 2024-04-24 17:00:34 +00:00
Contributor

In the atom feed, that is

In the atom feed, that is
snan force-pushed pre from acf6390ad9 to b6b773f6ec 2024-02-27 09:32:57 +00:00 Compare
Member

i was wondering why newlines are stripped at all, considering they have no effect in HTML outside of <pre> and XML should be able to handle them as well.
Apparently this was added 7 years ago to work around a bug in Mastodon; presumably for the OStatus use of this function and not the XML feed (which got split out later)

Given any OStatus bugs of Mastodon aren’t relevant anymore, can we just stop stripping newlines at all here?

i was wondering why newlines are stripped at all, considering they have no effect in HTML outside of `<pre>` and XML should be able to handle them as well. Apparently this was [added 7 years ago](https://akkoma.dev/AkkomaGang/akkoma/commit/368fa25f1f9aa69963165eadd677d315a4f994f7) to work around a bug in Mastodon; presumably for the OStatus use of this function and not the XML feed (which got split out [later](https://akkoma.dev/AkkomaGang/akkoma/commit/4b3f77a99ff849f7593f63f7dccd206683b34d97)) Given any OStatus bugs of Mastodon aren’t relevant anymore, can we just stop stripping newlines at all here?
snan force-pushed pre from 53cef182f3 to 8dd74f0d41 2024-03-11 11:35:35 +00:00 Compare
Author
Contributor

(If people prefer b6b773f6ec lmk, I can get it back 💁🏻‍♀️)

(If people prefer b6b773f6ec lmk, I can get it back 💁🏻‍♀️)
snan force-pushed pre from 8dd74f0d41 to 6116f81546 2024-03-11 11:51:44 +00:00 Compare
Oneric approved these changes 2024-04-23 17:54:43 +00:00
floatingghost merged commit 80e1c094c7 into develop 2024-04-24 17:00:34 +00:00
floatingghost deleted branch pre 2024-04-24 17:00:34 +00:00
Sign in to join this conversation.
No description provided.