Fix missing space between lines in description

This commit is contained in:
Kovid Goyal 2020-11-13 08:42:57 +05:30
parent c0f9091f68
commit 99a3d9c756
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -82,6 +82,8 @@ def parse(raw, parse_dates=True):
def finalize_item(item):
if 'description' in item and not item['description']:
del item['description']
if 'description' in item:
item['description'] = item['description'].strip()
return item
def in_item(linenum, line, stripped_line):
@ -99,7 +101,7 @@ def parse(raw, parse_dates=True):
item['description'] = ''
return in_item
if 'description' in item:
item['description'] += stripped_line
item['description'] += stripped_line + ' '
else:
item['title'] += stripped_line
return in_item