mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
bugs
This commit is contained in:
parent
2e42541cdc
commit
0d802b2d01
2 changed files with 4 additions and 2 deletions
|
@ -327,7 +327,7 @@ class PonysayTool():
|
|||
infowidth = Backend.len(max(ponyinfo, key = Backend.len))
|
||||
print(getprint(ponyinfo, infowidth, infoheight, termw, termh, x, y), end='')
|
||||
else:
|
||||
print(getprint(pony, ponywidth, ponyheight, panelx, termh, (panelx - ponywidth) // 2, (termh - ponyheight) // 2), end='')
|
||||
print(getprint(pony, ponywidth, ponyheight, panelx, termh, x + (panelx - ponywidth) // 2, y + (termh - ponyheight) // 2), end='')
|
||||
printpanel = -1
|
||||
|
||||
if printpanel == -1:
|
||||
|
|
|
@ -342,6 +342,8 @@ class Ponysay():
|
|||
self.ponyonly = True
|
||||
else:
|
||||
self.ponyonly = False
|
||||
if (args.opts['-i'] is not None) or (args.opts['+i'] is not None):
|
||||
args.message = ''
|
||||
self.restriction = args.opts['-r']
|
||||
|
||||
## The stuff
|
||||
|
@ -1849,7 +1851,7 @@ class Backend():
|
|||
if self.infolevel == 2:
|
||||
self.message = Backend.formatInfo(info)
|
||||
elif self.infolevel == 1:
|
||||
self.pony = Backend.formatInfo(info).replace('$'), ('$$')
|
||||
self.pony = Backend.formatInfo(info).replace('$', '$$')
|
||||
else:
|
||||
info = info.split('\n')
|
||||
for line in info:
|
||||
|
|
Loading…
Reference in a new issue