Update cloze.body to use original sentence text
This commit is contained in:
parent
befee9ceca
commit
afddec66eb
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user