mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-19 19:04:23 +01:00
m printing in columns
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
db5d34d50a
commit
4df37765d2
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