Split on the first occurence of "=" sign
Fix cases where string values also contain "=" signs
This commit is contained in:
parent
12077dd5f3
commit
9ef07cff19
@ -104,7 +104,7 @@ def parse_1D(fileobj, data_type):
|
||||
# read metadata
|
||||
for line in fileobj:
|
||||
if "=" in line:
|
||||
variable, value = line.split("=")
|
||||
variable, value = line.split("=", 1)
|
||||
variable = variable.strip()
|
||||
value = value.strip()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user