about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-07-17 21:17:57 +0300
committerGitHub <noreply@github.com>2025-07-17 21:17:57 +0300
commit2e16ef4384e49c951dc8c53c0a74935485985f68 (patch)
tree0bcff0f85634be83d34ff6e8deef5ea2fa156c87 /src
parent42bfee5d9dbc772ad4e8423474837aba0c88ebba (diff)
downloadvoidsky-2e16ef4384e49c951dc8c53c0a74935485985f68.tar.zst
fix whitespace collapse (#8659)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/text-input/TextInput.web.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx
index 06ff9836c..d5db7bcb6 100644
--- a/src/view/com/composer/text-input/TextInput.web.tsx
+++ b/src/view/com/composer/text-input/TextInput.web.tsx
@@ -221,7 +221,9 @@ export const TextInput = React.forwardRef(function TextInputImpl(
           }
         },
       },
-      content: generateJSON(richtext.text.toString(), extensions),
+      content: generateJSON(richtext.text.toString(), extensions, {
+        preserveWhitespace: 'full',
+      }),
       autofocus: 'end',
       editable: true,
       injectCSS: true,