From 3108a26793f1855dbc40ef647d77e4ce3c093ed9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 28 Mar 2023 21:19:21 -0400 Subject: [PATCH] fix: Trim document titles on save, closes #5084 --- server/commands/documentUpdater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commands/documentUpdater.ts b/server/commands/documentUpdater.ts index ab167f177..be3d7496d 100644 --- a/server/commands/documentUpdater.ts +++ b/server/commands/documentUpdater.ts @@ -53,7 +53,7 @@ export default async function documentUpdater({ const previousTitle = document.title; if (title !== undefined) { - document.title = title; + document.title = title.trim(); } if (editorVersion) { document.editorVersion = editorVersion;