remove debug message

This commit is contained in:
Rolux 2008-07-06 17:37:48 +02:00
parent e262b51a62
commit a9fb189924

View file

@ -114,7 +114,6 @@ def truncateString(string, length, padding='...', position='right'):
elif position == 'center': elif position == 'center':
left = int(math.ceil(float(length - paddingLength) / 2)) left = int(math.ceil(float(length - paddingLength) / 2))
right = int(stringLength - math.floor(float(length - paddingLength) / 2)) right = int(stringLength - math.floor(float(length - paddingLength) / 2))
print left, right
string = '%s%s%s' % (string[:left], padding, string[right:]) string = '%s%s%s' % (string[:left], padding, string[right:])
elif position == 'right': elif position == 'right':
string = '%s%s' % (string[:length - paddingLength], padding) string = '%s%s' % (string[:length - paddingLength], padding)