Newlines do not work #6

Closed
opened 2025-08-06 20:48:58 +00:00 by 88572 · 2 comments
88572 commented 2025-08-06 20:48:58 +00:00 (Migrated from github.com)

Pi:

Image

Dino:

Image

Stanza XML:

<message id="f24a54bcab2404b0" to="meow@pain.agency/j7C36QhGZnGQ" from="ringen@muc.isekai.rocks/meow" xml:lang="en" type="groupchat">
	<body>test&#xA;test 2&#xA;test 3</body>
	<stanza-id xmlns="urn:xmpp:sid:0" id="9d382b89-09e1-40c8-8a2d-c6a306cca0e4" by="ringen@muc.isekai.rocks"></stanza-id>
	<occupant-id xmlns="urn:xmpp:occupant-id:0" xmlns="urn:xmpp:occupant-id:0" id="j6ohv5P7Pt7KJ5HVZ6MuVCdRMVhkEa9bIWLsCzVZhSw="></occupant-id>
</message>
Pi: <img width="241" height="109" alt="Image" src="https://github.com/user-attachments/assets/c237f3d5-4203-4bbb-abaa-6c1d7f1f1c8d" /> Dino: <img width="196" height="105" alt="Image" src="https://github.com/user-attachments/assets/dd177c48-49eb-43f7-ad38-e4e8ad721c4e" /> Stanza XML: ```xml <message id="f24a54bcab2404b0" to="meow@pain.agency/j7C36QhGZnGQ" from="ringen@muc.isekai.rocks/meow" xml:lang="en" type="groupchat"> <body>test&#xA;test 2&#xA;test 3</body> <stanza-id xmlns="urn:xmpp:sid:0" id="9d382b89-09e1-40c8-8a2d-c6a306cca0e4" by="ringen@muc.isekai.rocks"></stanza-id> <occupant-id xmlns="urn:xmpp:occupant-id:0" xmlns="urn:xmpp:occupant-id:0" id="j6ohv5P7Pt7KJ5HVZ6MuVCdRMVhkEa9bIWLsCzVZhSw="></occupant-id> </message> ```
sunglocto commented 2025-08-06 20:51:31 +00:00 (Migrated from github.com)

It's because in the background I'm using Markdown to parse messages and add stuff like links, bold etc. Technically you have to add two newlines to make one in Markdown but obviously XMPP does not use markdown. I will probably eventually remove all markdown support in favor of a better solution

It's because in the background I'm using Markdown to parse messages and add stuff like links, bold etc. Technically you have to add two newlines to make one in Markdown but obviously XMPP does not use markdown. I will probably eventually remove all markdown support in favor of a better solution
sunglocto commented 2025-08-07 05:52:23 +00:00 (Migrated from github.com)

Closed by a61d309

Closed by a61d309
Sign in to join this conversation.
No description provided.