contrib: viptext: avoid crash on lines of only whitespace
This commit is contained in:
parent
34049fae33
commit
2546ee5d66
|
@ -44,7 +44,7 @@ try:
|
|||
h=0
|
||||
while True:
|
||||
inp = input()
|
||||
if len(inp) < 1:
|
||||
if len(inp.strip()) < 1:
|
||||
h+=5
|
||||
continue
|
||||
h+=fluttext(inp,0,h)+1
|
||||
|
|
Loading…
Reference in New Issue