summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 10:50:29 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 12:35:17 -0500
commitafddec66eb749aa0a39c7e7142f929e68697995d (patch)
tree31ffc1b78136844b5b11a7e268e93fb64227d848 /ext/mixed
parentbefee9ceca1a8a74b0cb70ae5b29f42f2d8f8e26 (diff)
Update cloze.body to use original sentence text
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 1 insertions, 1 deletions
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();
}