Browse Source

fix an encoding issue in the channel name truncator

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
5871fc6813
  1. 2
      pyweb/mumble/templatetags/mumble_extras.py

2
pyweb/mumble/templatetags/mumble_extras.py

@ -28,7 +28,7 @@ def trunc( string, maxlen = 50 ):
""" converts "a very very extaordinary long text" to "a very very extra... """
if len(string) < maxlen:
return string
return string[:(maxlen - 3)] + ""
return string[:(maxlen - 1)] + u""
@register.filter

Loading…
Cancel
Save