From cbad58e628d4e006485881cc28cfc80673f8fff5 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 20 Dec 2016 16:26:19 +0100 Subject: [PATCH] Update wrapWord.py --- play zone/wrapWord.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play zone/wrapWord.py b/play zone/wrapWord.py index 8b3a4247..566816a9 100755 --- a/play zone/wrapWord.py +++ b/play zone/wrapWord.py @@ -13,7 +13,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: @@ -42,7 +42,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 @@ -85,7 +85,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