From 4c052e81648d930d498133cd4b48128c9b608e3f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 13 Aug 2020 19:11:48 +1000 Subject: [PATCH] remove RTL special case in cloze deletion https://forums.ankiweb.net/t/erroneous-characters-added-to-rtl-cloze-deletions/2164 --- qt/ts/src/editor.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qt/ts/src/editor.ts b/qt/ts/src/editor.ts index addb2f7a6..66dd69542 100644 --- a/qt/ts/src/editor.ts +++ b/qt/ts/src/editor.ts @@ -291,10 +291,6 @@ function wrapIntoText(front, back) { } function wrapInternal(front, back, plainText) { - if (currentField.dir === "rtl") { - front = "‫" + front + "‬"; - back = "‫" + back + "‬"; - } const s = window.getSelection(); let r = s.getRangeAt(0); const content = r.cloneContents();