From 4df37765d2728de14a7aaf0c221c88da8a9e2fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Tue, 4 Dec 2012 22:31:32 +0100 Subject: [PATCH] m printing in columns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- ponysay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay.py b/ponysay.py index 785ba635..a6053eeb 100755 --- a/ponysay.py +++ b/ponysay.py @@ -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: