From 8366fe2c4aae18ef67025386425ea90a83174a72 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 5 Oct 2023 19:08:20 -0700 Subject: Dont trim before posting (close #1621) (#1622) * Dont trim before posting (close #1621) * Tweak: do trim end --- src/lib/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/api/index.ts') 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, }, -- cgit 1.4.1