From 4e4469413638ad2c701f4a14cdfb67256b0ca9f2 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 11 May 2020 19:25:49 +1000 Subject: [PATCH] Revert "use isolation characters instead of direction markers in cloze handling" This reverts commit e838769d02adbbe262b47cc0788ea65245db92f9. Caused a regression: https://anki.tenderapp.com/discussions/ankidesktop/41384-cloze-deletions-in-2125-and-2126 --- qt/ts/src/editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/ts/src/editor.ts b/qt/ts/src/editor.ts index 121e6f980..6a59ff978 100644 --- a/qt/ts/src/editor.ts +++ b/qt/ts/src/editor.ts @@ -292,8 +292,8 @@ function wrapIntoText(front, back) { function wrapInternal(front, back, plainText) { if (currentField.dir === "rtl") { - front = "⁨" + front + "⁩"; - back = "⁨" + back + "⁩"; + front = "‫" + front + "‬"; + back = "‫" + back + "‬"; } const s = window.getSelection(); let r = s.getRangeAt(0);