From b261d10b899019c629b2e61ba08d00176af1003f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 1 Aug 2023 09:47:42 +0300 Subject: [PATCH] Fix Return not accepting citation dialog after pasting. Closes #3240 --- chrome/content/zotero/integration/quickFormat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index a458e61b63..5d8663d06d 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -236,7 +236,7 @@ var Zotero_QuickFormat = new function () { */ function _getEditorContent(clear) { var node = _getCurrentEditorTextNode(); - return node ? node.wholeText : false; + return node ? node.wholeText.trim() : false; } /**