From afddec66eb749aa0a39c7e7142f929e68697995d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 26 Nov 2019 10:50:29 -0500 Subject: [PATCH] Update cloze.body to use original sentence text --- ext/mixed/js/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 2f10da30..21d00bbc 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -640,7 +640,7 @@ class Display { if (source) { result.prefix = sentence.text.substring(0, sentence.offset).trim(); - result.body = source.trim(); + result.body = sentence.text.substring(sentence.offset, sentence.offset + source.length); result.suffix = sentence.text.substring(sentence.offset + source.length).trim(); }