Attempt to fix the bug where fenrir sometimes reads all the spaces in a message.
This commit is contained in:
		| @@ -72,7 +72,8 @@ class punctuationManager(): | |||||||
|         currPunctLevel = '' |         currPunctLevel = '' | ||||||
|         if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']: |         if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']: | ||||||
|             currPunctLevel = self.env['punctuation']['LEVELDICT'][self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()] |             currPunctLevel = self.env['punctuation']['LEVELDICT'][self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()] | ||||||
|         else: |         elif not ignorePunctuation: | ||||||
|  |             # Only use fallback punctuation if ignorePunctuation is False | ||||||
|             currPunctLevel = string.punctuation +' §' |             currPunctLevel = string.punctuation +' §' | ||||||
|         resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel) |         resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel) | ||||||
|         resultText = self.removeUnused(resultText, currPunctLevel) |         resultText = self.removeUnused(resultText, currPunctLevel) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user