about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/TextInput.web.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-10-05 19:08:20 -0700
committerGitHub <noreply@github.com>2023-10-05 19:08:20 -0700
commit8366fe2c4aae18ef67025386425ea90a83174a72 (patch)
tree4c3ab08c9f5703c6ab8b231bbfd7e1afcfd79d0a /src/view/com/composer/text-input/TextInput.web.tsx
parentb74a0e0fe2b4cc3b386ded459d930443633ca20b (diff)
downloadvoidsky-8366fe2c4aae18ef67025386425ea90a83174a72.tar.zst
Dont trim before posting (close #1621) (#1622)
* Dont trim before posting (close #1621)

* Tweak: do trim end
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.web.tsx')
-rw-r--r--src/view/com/composer/text-input/TextInput.web.tsx2
1 files changed, 1 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 31e372567..35482bc70 100644
--- a/src/view/com/composer/text-input/TextInput.web.tsx
+++ b/src/view/com/composer/text-input/TextInput.web.tsx
@@ -119,7 +119,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
       onUpdate({editor: editorProp}) {
         const json = editorProp.getJSON()
 
-        const newRt = new RichText({text: editorJsonToText(json).trim()})
+        const newRt = new RichText({text: editorJsonToText(json).trimEnd()})
         newRt.detectFacetsWithoutResolution()
         setRichText(newRt)