Split on the first occurence of "=" sign
Fix cases where string values also contain "=" signs
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user