fix #46
This commit is contained in:
parent
e923585fb1
commit
7817b677c1
@ -272,5 +272,5 @@ def cloze_deletion(text, term):
|
||||
if not "{{" in text[word:word + len(term)] or "}}" in text[word:word + len(term)]:
|
||||
result = result[:word + len(term)] + "}}" + result[word + len(term):]
|
||||
result = result[:word] + "{{c" + str(index) + "::" + result[word:]
|
||||
index += 1
|
||||
#index += 1
|
||||
return result
|
||||
|
||||
@ -273,5 +273,5 @@ def cloze_deletion(text, term):
|
||||
if not "{{" in text[word:word + len(term)] or "}}" in text[word:word + len(term)]:
|
||||
result = result[:word + len(term)] + "}}" + result[word + len(term):]
|
||||
result = result[:word] + "{{c" + str(index) + "::" + result[word:]
|
||||
index += 1
|
||||
#index += 1
|
||||
return result
|
||||
|
||||
Loading…
Reference in New Issue
Block a user