Skip to content

Commit ff21508

Browse files
authored
Merge bc553c0 into 50cb4de
2 parents 50cb4de + bc553c0 commit ff21508

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/speechDictHandler/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ def sub(self, text):
118118
def processText(text):
119119
if not globalVars.speechDictionaryProcessing:
120120
return text
121+
try:
122+
# #14689: API level 0 UIA consoles have many blank lines, which slows processing to a halt
123+
if config.conf["UIA"]["winConsoleImplementation"] == "UIA":
124+
stripText = text.rstrip()
125+
if len(text)-len(stripText) > 10000:
126+
text = stripText
127+
except KeyError:
128+
pass
121129
for type in dictTypes:
122130
text=dictionaries[type].sub(text)
123131
return text

0 commit comments

Comments
 (0)