From 86b983ec7d45309e82f5dabf17b11f9c930671b0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 24 Oct 2012 19:40:18 +0200 Subject: m fix wrap column --- ponysay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponysay.py b/ponysay.py index 06723c8..e9a5b61 100755 --- a/ponysay.py +++ b/ponysay.py @@ -1348,7 +1348,7 @@ class Balloon(): minN = len(max([ne, nne, n, nnw, nw], key = len)) minS = len(max([se, sse, s, ssw, sw], key = len)) - self.minwidth = minE + minE + self.minwidth = minE + minE self.minheight = minN + minS @@ -1419,7 +1419,7 @@ class Backend(): def __init__(self, message, ponyfile, wrapcolumn, width, balloon, hyphen, linkcolour, ballooncolour): self.message = message self.ponyfile = ponyfile - self.wrapcolumn = wrapcolumn + self.wrapcolumn = None if wrapcolumn is None else wrapcolumn - balloon.minwidth self.width = width self.balloon = balloon self.hyphen = hyphen -- cgit