Skip to content

Commit

Permalink
Edit Book: Spell Check: Fix words surrounded by narrow non-breaking s…
Browse files Browse the repository at this point in the history
…paces being incorrectly detected as mis-spelled
  • Loading branch information
kovidgoyal committed Dec 19, 2019
1 parent 511d3c6 commit 1bc5389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/ebooks/oeb/polish/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def add_words(text, node, words, file_name, locale, node_item):
p = patterns()
is_fr = locale.langcode == 'fra'
for word in candidates:
sword = p.sanitize_invisible_pat.sub('', word)
sword = p.sanitize_invisible_pat.sub('', word).strip()
elided_prefix = ''
if is_fr:
m = p.fr_elision_pat.match(sword)
Expand Down

0 comments on commit 1bc5389

Please sign in to comment.