From 79c3a5e527004584d9688536a2ce35e95776d24a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 31 Oct 2010 11:22:14 +0000 Subject: [PATCH] Reverted to r2206 --- tamper/between.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tamper/between.py b/tamper/between.py index badef3193..ed4faf8d3 100644 --- a/tamper/between.py +++ b/tamper/between.py @@ -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