diff --git a/twander.py b/twander.py index c33869a..9ad5af1 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ # For Updates See: http://www.tundraware.com/Software/twander PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.96 2002/12/11 21:54:54 tundra Exp $" +RCSID = "$Id: twander.py,v 1.97 2002/12/11 22:48:57 tundra Exp $" VERSION = RCSID.split()[2] @@ -422,10 +422,10 @@ # Variable Definitions ##### - elif fields[0].find(ASSIGN) > 0: - assign = fields[0].find(ASSIGN) - name = line[:assign] - val=line[assign+1:] + elif line.find(ASSIGN) > 0: + assign = line.find(ASSIGN) + name = line[:assign].strip() + val=line[assign+1:].strip() # Warn on variable redefinitions if UI.SymTable.has_key(name):