m printing in columns

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2012-12-04 22:31:32 +01:00
parent db5d34d50a
commit 4df37765d2

View file

@ -814,7 +814,7 @@ class Ponysay():
## Make the columnisation nicer by letting the last row be partially empty rather than the last column
diff = rows * cols - len(ponies)
if diff > 2:
if (diff > 2) and (rows > 1):
c = cols - 1
diff -= 1
while diff > 0: