Browse files

Correction in -W broke -o

  • Loading branch information...
1 parent 9365bc6 commit 998f8230ba4fc634cb018494c5a16d4587f896c4 @maandree maandree committed Oct 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ponysay.py
View
4 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 @@ def __distance(self, proper, y0, yn, used, x0, xn):
return 0x7FFFFF00 | y
my = myy
return my[xn]
-
+

0 comments on commit 998f823

Please sign in to comment.