mirror of
https://github.com/erkin/ponysay.git
synced 2025-01-31 10:26:43 +01:00
m fix wrap column
This commit is contained in:
parent
78eda26515
commit
86b983ec7d
1 changed files with 2 additions and 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
|
||||
|
|
Loading…
Reference in a new issue