aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-28 15:42:07 +0100
committerMattias Andrée <maandree@operamail.com>2012-10-28 15:42:07 +0100
commit998f8230ba4fc634cb018494c5a16d4587f896c4 (patch)
treec37adcd9951eb4565a15a8e859fbd57dc71b00a8
parent9365bc655c7e09c91dc499d2e1d6117ad0a97990 (diff)
downloadponysay-998f8230ba4fc634cb018494c5a16d4587f896c4.tar.gz
ponysay-998f8230ba4fc634cb018494c5a16d4587f896c4.tar.bz2
ponysay-998f8230ba4fc634cb018494c5a16d4587f896c4.zip
Correction in -W broke -o
-rwxr-xr-xponysay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ponysay.py b/ponysay.py
index 64b835c..5f77ed0 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -1431,7 +1431,7 @@ class Backend():
def __init__(self, message, ponyfile, wrapcolumn, width, balloon, hyphen, linkcolour, ballooncolour):
self.message = message
self.ponyfile = ponyfile
- self.wrapcolumn = None if wrapcolumn is None else wrapcolumn - balloon.minwidth
+ self.wrapcolumn = None if wrapcolumn is None else wrapcolumn - (0 if balloon is None else balloon.minwidth)
self.width = width
self.balloon = balloon
self.hyphen = hyphen
@@ -2254,7 +2254,7 @@ class SpelloCorrecter(): # Naïvely and quickly proted and adapted from optimise
return 0x7FFFFF00 | y
my = myy
return my[xn]
-
+