1
0
Fork 0
mirror of https://github.com/erkin/ponysay.git synced 2025-04-03 09:55:26 +02:00
This commit is contained in:
Mattias Andrée 2012-11-01 02:45:59 +01:00
parent 9727e1d51e
commit b3d9b671f0

View file

@ -2015,6 +2015,8 @@ class Backend():
extraleft -= msgwidth - width
elif justify == 'c':
extraleft -= (msgwidth - width) >> 1
if extraleft < 0:
extraleft = 0
if extraleft + msgwidth > wrap:
extraleft -= msgwidth - wrap