From 2f61fc31fde787364f2593826417396fe8660683 Mon Sep 17 00:00:00 2001 From: renahlee Date: Fri, 5 May 2023 16:36:48 -0700 Subject: [PATCH] Fix hardbreak formatting --- src/view/com/composer/text-input/TextInput.web.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index b56d306e..245c17b9 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -140,6 +140,8 @@ function editorJsonToText(json: JSONContent): string { } } text += '\n' + } else if (json.type === 'hardBreak') { + text += '\n' } else if (json.type === 'text') { text += json.text || '' } else if (json.type === 'mention') {