Check line lenght before assuming there's a first character.
- Legacy-Id: 14619
This commit is contained in:
parent
6d1ac046b5
commit
dd7853c7a3
|
@ -153,7 +153,7 @@ def text_to_dict(t):
|
|||
items = []
|
||||
# unfold folded lines
|
||||
for l in lines:
|
||||
if l[0].isspace():
|
||||
if len(l) and l[0].isspace():
|
||||
if items:
|
||||
items[-1] += l
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue