Update cloze.body to use original sentence text

This commit is contained in:
toasted-nutbread 2019-11-26 10:50:29 -05:00
parent befee9ceca
commit afddec66eb

View File

@ -640,7 +640,7 @@ class Display {
if (source) { if (source) {
result.prefix = sentence.text.substring(0, sentence.offset).trim(); 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(); result.suffix = sentence.text.substring(sentence.offset + source.length).trim();
} }