diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-07-17 21:17:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-17 21:17:57 +0300 |
commit | 2e16ef4384e49c951dc8c53c0a74935485985f68 (patch) | |
tree | 0bcff0f85634be83d34ff6e8deef5ea2fa156c87 /src/view/com/composer/text-input | |
parent | 42bfee5d9dbc772ad4e8423474837aba0c88ebba (diff) | |
download | voidsky-2e16ef4384e49c951dc8c53c0a74935485985f68.tar.zst |
fix whitespace collapse (#8659)
Diffstat (limited to 'src/view/com/composer/text-input')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 4 |
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, |