From 5d263e2f4ce05b376109f3c4f02f79e32ffd7c70 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 18 Apr 2024 11:40:24 -0400 Subject: [PATCH] Note Editor & Quick Copy: Don't use bidi control characters Since Word can't handle FSI/PDI. This affects dragging items into notes and dragging/copying annotations in the reader. Citations inserted from within the note editor already didn't include bidi control characters. Fixes #4013 --- chrome/content/zotero/xpcom/editorInstance.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 60978452e8..acb25a25c4 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -1636,9 +1636,7 @@ class EditorInstanceUtilities { else if (authors.length === 2) { let a = authors[0].family || authors[0].literal; let b = authors[1].family || authors[1].literal; - // \u2068 FIRST STRONG ISOLATE: Isolates the directionality of characters that follow - // \u2069 POP DIRECTIONAL ISOLATE: Pops the above isolation - str = Zotero.getString('general.andJoiner', [`\u2068${a}\u2069`, `\u2068${b}\u2069`]); + str = Zotero.getString('general.andJoiner', [a, b]); } else if (authors.length >= 3) { str = (authors[0].family || authors[0].literal) + ' ' + Zotero.getString('general.etAl');