Merge branch 'regexpunct'

This commit is contained in:
Chrys
2019-10-22 00:28:02 +02:00
7 changed files with 146 additions and 51 deletions

View File

@ -50,7 +50,7 @@ class punctuationManager():
if ' ' in punctuation:
resultText = resultText.replace(' ',' ' + punctuationDict[' '] + ' ')
for key,item in punctuationDict.items():
if key in punctuation and key not in ' ':
if (punctuation != '' and key in punctuation) and key not in ' ':
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
len(key) == 1 and \
key in "',.;:?!":