list: fix when line is empty ; show error
This commit is contained in:
parent
3de1bc4198
commit
84e1ad47c4
|
@ -657,7 +657,7 @@ def check_content(post_bottom):
|
||||||
elif line.startswith('-)'): inlist = False
|
elif line.startswith('-)'): inlist = False
|
||||||
if not inlist: continue
|
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'%(
|
logs.out("3", 'line %s must start with %s'%(
|
||||||
ln, markers_lists
|
ln, markers_lists
|
||||||
), False
|
), False
|
||||||
|
|
Loading…
Reference in New Issue