Commit 26ec4ed3 authored by Lee-Ping's avatar Lee-Ping
Browse files

Define value included one extra leading character

parent 5184d1d8
...@@ -111,7 +111,7 @@ class GromacsTopFile(object): ...@@ -111,7 +111,7 @@ class GromacsTopFile(object):
if len(fields) < 2: if len(fields) < 2:
raise ValueError('Illegal line in .top file: '+line) raise ValueError('Illegal line in .top file: '+line)
name = fields[1] name = fields[1]
valueStart = stripped.find(name, len(command))+len(name) valueStart = stripped.find(name, len(command))+len(name)+1
value = line[valueStart:].strip() value = line[valueStart:].strip()
self._defines[name] = value self._defines[name] = value
elif command == '#ifdef': elif command == '#ifdef':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment