Commit c79a29b3 authored by peastman's avatar peastman
Browse files

Merge pull request #500 from leeping/master

GromacsTopFile parses define value with one extra leading character
parents 5184d1d8 26ec4ed3
......@@ -111,7 +111,7 @@ class GromacsTopFile(object):
if len(fields) < 2:
raise ValueError('Illegal line in .top file: '+line)
name = fields[1]
valueStart = stripped.find(name, len(command))+len(name)
valueStart = stripped.find(name, len(command))+len(name)+1
value = line[valueStart:].strip()
self._defines[name] = value
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