mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-16 17:44:23 +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))
|
infowidth = Backend.len(max(ponyinfo, key = Backend.len))
|
||||||
print(getprint(ponyinfo, infowidth, infoheight, termw, termh, x, y), end='')
|
print(getprint(ponyinfo, infowidth, infoheight, termw, termh, x, y), end='')
|
||||||
else:
|
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
|
printpanel = -1
|
||||||
|
|
||||||
if printpanel == -1:
|
if printpanel == -1:
|
||||||
|
|
|
@ -342,6 +342,8 @@ class Ponysay():
|
||||||
self.ponyonly = True
|
self.ponyonly = True
|
||||||
else:
|
else:
|
||||||
self.ponyonly = False
|
self.ponyonly = False
|
||||||
|
if (args.opts['-i'] is not None) or (args.opts['+i'] is not None):
|
||||||
|
args.message = ''
|
||||||
self.restriction = args.opts['-r']
|
self.restriction = args.opts['-r']
|
||||||
|
|
||||||
## The stuff
|
## The stuff
|
||||||
|
@ -1849,7 +1851,7 @@ class Backend():
|
||||||
if self.infolevel == 2:
|
if self.infolevel == 2:
|
||||||
self.message = Backend.formatInfo(info)
|
self.message = Backend.formatInfo(info)
|
||||||
elif self.infolevel == 1:
|
elif self.infolevel == 1:
|
||||||
self.pony = Backend.formatInfo(info).replace('$'), ('$$')
|
self.pony = Backend.formatInfo(info).replace('$', '$$')
|
||||||
else:
|
else:
|
||||||
info = info.split('\n')
|
info = info.split('\n')
|
||||||
for line in info:
|
for line in info:
|
||||||
|
|
Loading…
Reference in a new issue