mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1333459 [Edit Book: Starting mdash breaks spellchecking](https://bugs.launchpad.net/calibre/+bug/1333459)
(regression introduced by performance optimizations from yesterday)
This commit is contained in:
parent
bca2e2ad7e
commit
bf59c9c4da
@ -245,7 +245,7 @@ def check_spelling(text, tpos, tlen, fmt, locale, sfmt):
|
|||||||
if start > ppos:
|
if start > ppos:
|
||||||
split_ans.append((start - ppos, fmt))
|
split_ans.append((start - ppos, fmt))
|
||||||
ppos = start + length
|
ppos = start + length
|
||||||
recognized = dictionaries.recognized(text[tpos + start:ppos], locale)
|
recognized = dictionaries.recognized(text[tpos + start:tpos + ppos], locale)
|
||||||
if recognized:
|
if recognized:
|
||||||
split_ans.append((length, fmt))
|
split_ans.append((length, fmt))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user