From 7fd10c47816bb92599db32d6e81c7202d2affb0a Mon Sep 17 00:00:00 2001 From: Dieguitux Date: Thu, 26 Dec 2024 13:34:41 +0100 Subject: [PATCH] fix: better paragraph handling in BBCode to/from HTML conversion (#683) --- .../feature/composer/converters/DefaultBBCodeConverter.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feature/composer/src/commonMain/kotlin/com/livefast/eattrash/raccoonforfriendica/feature/composer/converters/DefaultBBCodeConverter.kt b/feature/composer/src/commonMain/kotlin/com/livefast/eattrash/raccoonforfriendica/feature/composer/converters/DefaultBBCodeConverter.kt index 99899a530..89feb12da 100644 --- a/feature/composer/src/commonMain/kotlin/com/livefast/eattrash/raccoonforfriendica/feature/composer/converters/DefaultBBCodeConverter.kt +++ b/feature/composer/src/commonMain/kotlin/com/livefast/eattrash/raccoonforfriendica/feature/composer/converters/DefaultBBCodeConverter.kt @@ -26,6 +26,8 @@ internal class DefaultBBCodeConverter : BBCodeConverter { .replace("[/i]", "") .replace("[b]", "") .replace("[/b]", "") + .replace("[p]", "

") + .replace("[/p]", "

") .replace("[code]", "") .replace("[/code]", "") .replace("[ul]", "