mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
fix for missing multi-line values that come immediately after a previous multi-line value
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user