From 0e4435802efa2914675b4d52e72e1f0d8f3c145e Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 20 Dec 2016 16:18:30 +0100 Subject: [PATCH] Update word_utils.py --- src/fenrir/utils/word_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrir/utils/word_utils.py b/src/fenrir/utils/word_utils.py index ef8a9d7e..f06e5862 100644 --- a/src/fenrir/utils/word_utils.py +++ b/src/fenrir/utils/word_utils.py @@ -12,7 +12,7 @@ def getPrevWord(currX,currY, currText): endOfScreen = False if currText == '': return -1, -1, '', endOfScreen, lineBreak - if currText.strip(string.punctuation +"§ " + string.whitespace) == '': + if currText.strip(string.whitespace) == '': return currX, currY, '', endOfScreen, lineBreak x, y, currWord, endOfScreen, lineBreakCurrWord = getCurrentWord(currX,currY,currText) if endOfScreen: @@ -41,7 +41,7 @@ def getCurrentWord(currX,currY, currText): endOfScreen = False if currText == '': return -1, -1, '', endOfScreen, lineBreak - if currText.strip(string.punctuation +"§ " + string.whitespace) == '': + if currText.strip(string.whitespace) == '': return currX, currY, '', endOfScreen, lineBreak x = currX y = currY @@ -84,7 +84,7 @@ def getNextWord(currX,currY, currText): endOfScreen = False if currText == '': return -1, -1, '', endOfScreen, lineBreak - if currText.strip(string.punctuation +"§ " + string.whitespace) == '': + if currText.strip(string.whitespace) == '': return currX, currY, '', endOfScreen, lineBreak x = currX y = currY