add get first char in line, fix cycle punctuation

This commit is contained in:
chrys
2016-10-04 21:53:29 +02:00
parent 40b18c9c49
commit 1e3719ebff
4 changed files with 48 additions and 7 deletions

View File

@@ -102,9 +102,10 @@ class punctuationManager():
try:
currIndex = punctList.index(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()) # curr punctuation
except:
return
return False
currIndex += 1
if currIndex >= len(punctList):
currIndex = 0
currLevel = punctList[currIndex]
self.env['runtime']['settingsManager'].setSetting('general', currLevel.lower())
self.env['runtime']['settingsManager'].setSetting('general', 'punctuationLevel', currLevel.lower())
return True