load multiline strings from vdf

This commit is contained in:
pathmann 2017-09-23 03:08:07 +02:00 committed by Mathieu Comandon
parent c332fc8d03
commit 2484e65c42

View file

@ -31,6 +31,12 @@ def vdf_parse(steam_config_file, config):
return config return config
if not line or line.strip() == "}": if not line or line.strip() == "}":
return config return config
while not line.strip().endswith("\""):
nextline = steam_config_file.readline()
if not nextline:
break
line = line[:-1] + nextline
line_elements = line.strip().split("\"") line_elements = line.strip().split("\"")
if len(line_elements) == 3: if len(line_elements) == 3:
key = line_elements[1] key = line_elements[1]