From 0bd4dfdd5550ad17b720c1baf65de6c524c6c191 Mon Sep 17 00:00:00 2001 From: siengrain Date: Thu, 24 Feb 2022 14:12:47 +0000 Subject: [PATCH] correction should work now --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1c34489..d14db7a 100755 --- a/main.py +++ b/main.py @@ -25,8 +25,9 @@ while True: fin_lyr = letra[0] l = fin_lyr.split('\n') for x in l: - if x[0] == ' ': - x = x.replace(' ', '\n', 1) + if len(x) > 0: + if x[0] == ' ': + x = x.replace(' ', '\n', 1) print(x) while True: print('<------------------------------------------------------------->')