diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-10-24 19:40:18 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-10-24 19:40:18 +0200 |
commit | 86b983ec7d45309e82f5dabf17b11f9c930671b0 (patch) | |
tree | 2b99199b625832eed36c0dbe11c952f4ccf0a420 | |
parent | 78eda26515ad471cc36195318090451ba27ce56b (diff) | |
download | ponysay-86b983ec7d45309e82f5dabf17b11f9c930671b0.tar.gz ponysay-86b983ec7d45309e82f5dabf17b11f9c930671b0.tar.bz2 ponysay-86b983ec7d45309e82f5dabf17b11f9c930671b0.zip |
m fix wrap column
-rwxr-xr-x | ponysay.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |