Clean up a few bits in the editor code, fix margins, and fix issue in spell checker

This commit is contained in:
Veronica Berglyd Olsen
2023-10-17 20:25:17 +02:00
parent f8bff62754
commit 9dd8f65795
2 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -452,7 +452,7 @@ class TextBlockData(QTextBlockUserData):
while rxSpell.hasNext():
rxMatch = rxSpell.next()
if not SHARED.spelling.checkWord(rxMatch.captured(0)):
if rxMatch.captured(0).isalpha() and not rxMatch.captured(0).isupper():
if not rxMatch.captured(0).isnumeric() and not rxMatch.captured(0).isupper():
self._spellErrors.append((rxMatch.capturedStart(0), rxMatch.capturedLength(0)))
return self._spellErrors