1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/39b40280ed6d/ changeset: r5019:39b40280ed6d user: kanwei date: 2011-02-08 19:36:15 summary: Fix python 2.4 incompat affected #: 1 file (29 bytes) --- a/lib/galaxy/web/framework/helpers/__init__.py Tue Feb 08 12:14:20 2011 -0500 +++ b/lib/galaxy/web/framework/helpers/__init__.py Tue Feb 08 13:36:15 2011 -0500 @@ -26,7 +26,10 @@ # Smart string truncation def truncate(content, length=100, suffix='...'): - return (content if len(content) <= length else content[:length].rsplit(' ', 1)[0]+suffix) + if len(content) <= length: + return content + else: + return content[:length].rsplit(' ', 1)[0] + suffix # Quick helpers for static content Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.