diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/api/index.ts | 2 | ||||
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index 8a9389a18..f930bd7b1 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -94,7 +94,7 @@ export async function post(store: RootStoreModel, opts: PostOpts) { | undefined let reply let rt = new RichText( - {text: opts.rawText.trim()}, + {text: opts.rawText.trimEnd()}, { cleanNewlines: true, }, 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) |