Only index into the phrase if it not a space
This commit is contained in:
parent
db75a84f35
commit
c01a5b645b
|
@ -26,13 +26,16 @@ bitmap = [
|
|||
"...................................................................."
|
||||
]
|
||||
|
||||
idx = 0
|
||||
|
||||
for line in bitmap:
|
||||
new_line = ""
|
||||
|
||||
for idx, point in enumerate(line):
|
||||
for point in line:
|
||||
if point == " ":
|
||||
new_line += " "
|
||||
else:
|
||||
new_line += phrase[idx % len(phrase)]
|
||||
idx += 1
|
||||
|
||||
print(new_line)
|
||||
|
|
Loading…
Reference in New Issue