From 6685138200d5955115707d04aad0293ea8af5b15 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 13 May 2020 09:25:02 -0700 Subject: [PATCH] fix for missing multi-line values that come immediately after a previous multi-line value --- jc/parsers/dmidecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/dmidecode.py b/jc/parsers/dmidecode.py index 99999904..6a6506d7 100644 --- a/jc/parsers/dmidecode.py +++ b/jc/parsers/dmidecode.py @@ -136,7 +136,7 @@ def parse(data, raw=False, quiet=False): continue # 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_values = True value_list = False