Skip to content

Commit 1dd1f4a

Browse files
committed
Fix reporting of out of grammar errors
1 parent b6b0052 commit 1dd1f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/speech/speech.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,7 @@ def getFormatFieldSpeech( # noqa: C901
30893089
if formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
30903090
# Translators: Reported when text contains a grammar error.
30913091
texts.append(_("grammar error"))
3092-
elif extraDetail:
3092+
elif extraDetail and formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
30933093
# Translators: Reported when moving out of text containing a grammar error.
30943094
texts.append(_("out of grammar error"))
30953095
textList.extend(texts)

0 commit comments

Comments
 (0)