mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
fixup for filenames that start with a newline character
This commit is contained in:
@ -266,7 +266,11 @@ def parse(data, raw=False, quiet=False):
|
||||
continue
|
||||
|
||||
# split filenames and links
|
||||
if len(parsed_line) == 9:
|
||||
filename_field = parsed_line[8].split(' -> ')
|
||||
else:
|
||||
# in case of filenames starting with a newline character
|
||||
filename_field = ['']
|
||||
|
||||
# create list of dictionaries
|
||||
output_line['filename'] = filename_field[0]
|
||||
|
Reference in New Issue
Block a user