aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
Diffstat (limited to 'ponysay.py')
-rw-r--r--ponysay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index c70382e..f5f0f66 100644
--- a/ponysay.py
+++ b/ponysay.py
@@ -73,5 +73,5 @@ def render_pony(name, text, balloonstyle, width=80, center=False, centertext=Fal
ponywidth = max([ len(re.sub(r'\x1B\[[0-9;]+m|\$.*\$', '', line)) for line in pony ])
indent = ' '*int((width-ponywidth)/2)
wre = re.compile('((\x1B\[[0-9;]+m)*.){0,%s}' % width)
- return ''.join([ indent+wre.search(line).group()+'\n' for line in pony ])
+ return ''.join([ indent+wre.search(line).group()+'\n' for line in pony ])