1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

fix for missing multi-line values that come immediately after a previous multi-line value

This commit is contained in:
Kelly Brazil
2020-05-13 09:25:02 -07:00
parent 4d3e65b980
commit 6685138200

View File

@ -136,7 +136,7 @@ def parse(data, raw=False, quiet=False):
continue continue
# back to keys and values when inside multi-line key # back to keys and values when inside multi-line key
if item_values and value_list and len(line.split(':', maxsplit=1)) == 2: if item_values and value_list and len(line.split(':', maxsplit=1)) == 2 and not line.strip().endswith(':'):
item_header = False item_header = False
item_values = True item_values = True
value_list = False value_list = False