Skip to content

Commit cc180bf

Browse files
committed
More attractive snakesay
1 parent 19e7d0e commit cc180bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonanywhere/snakesay.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def speech_bubble_lines(speech):
2424

2525
else:
2626
yield ' ' + '_' * width
27-
yield '/ {} \\'.format(lines[0])
28-
for line in lines[1:-1]:
27+
yield '/ ' + (' ' * width) + ' \\'
28+
for line in lines:
2929
yield '| {} |'.format(line)
30-
yield r'\ {} /'.format(lines[-1])
30+
yield '\\ ' + (' ' * width) + ' /'
3131
yield ' ' + '-' * width
3232

3333

0 commit comments

Comments
 (0)