1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

only add description if it exists

This commit is contained in:
Kelly Brazil
2021-04-06 14:46:27 -07:00
parent 0548263e89
commit 753cac25fb

View File

@ -229,6 +229,7 @@ def parse(data, raw=False, quiet=False):
if this_entry != last_entry:
if entry_obj:
if description:
entry_obj['description'] = ' '.join(description)
raw_output.append(entry_obj)
entry_obj = {}
@ -246,6 +247,8 @@ def parse(data, raw=False, quiet=False):
if desc_entry:
description.append(line)
if entry_obj:
if description:
entry_obj['description'] = ' '.join(description)
raw_output.append(entry_obj)