Reverted to r2206

This commit is contained in:
Bernardo Damele 2010-10-31 11:22:14 +00:00
parent 3869ccebe8
commit 79c3a5e527

View File

@ -17,12 +17,14 @@ def tamper(value):
if value:
retVal = ""
quote, doublequote = False, False
quote, doublequote, firstspace = False, False, False
for i in xrange(len(value)):
if value[i].isspace():
retVal += " "
continue
if not firstspace:
if value[i].isspace():
firstspace = True
retVal += " "
continue
elif value[i] == '\'':
quote = not quote