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
This commit is contained in:
Abe Jellinek 2024-04-18 11:40:24 -04:00
parent 07de63be35
commit 5d263e2f4c

View file

@ -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');