list: fix when line is empty ; show error

This commit is contained in:
Cyrille L 2023-03-15 10:06:57 +01:00
parent 3de1bc4198
commit 84e1ad47c4
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ def check_content(post_bottom):
elif line.startswith('-)'): inlist = False
if not inlist: continue
if not line[0] in tyto.markers_lists:
if inlist and not line or not line[0] in tyto.markers_lists:
logs.out("3", 'line %s must start with %s'%(
ln, markers_lists
), False