mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
Merge branch 'next' of http://github.com/erkin/ponysay into next
This commit is contained in:
commit
0ba9e9eec5
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ class Ponysay():
|
||||||
|
|
||||||
## Make the columnisation nicer by letting the last row be partially empty rather than the last column
|
## Make the columnisation nicer by letting the last row be partially empty rather than the last column
|
||||||
diff = rows * cols - len(ponies)
|
diff = rows * cols - len(ponies)
|
||||||
if diff > 2:
|
if (diff > 2) and (rows > 1):
|
||||||
c = cols - 1
|
c = cols - 1
|
||||||
diff -= 1
|
diff -= 1
|
||||||
while diff > 0:
|
while diff > 0:
|
||||||
|
|
Loading…
Reference in a new issue