Changeset cd6a008 in Klonkt for src/services/i18n.js

Timestamp:
06/27/2026 12:16:21 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
00a2bcd
Parents:
ace5a9b
Message:

fix(fedi): preserve newlines when federating to Mastodon

Klonkt renders post content with white-space:pre-wrap, so raw \n are line breaks on the
site, but Mastodon collapses whitespace and dropped them (a poem arrived as one block).
buildNote now converts newlines to <br> for the federated copy. Content authored with
shift+enter already uses <br> (no \n) → no-op there.

(No files)

Note: See TracChangeset for help on using the changeset viewer.