[Mpuls-commits] r900 - wasko/branches/2.0/waskaweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jan 26 17:39:21 CET 2010
Author: torsten
Date: 2010-01-26 17:39:17 +0100 (Tue, 26 Jan 2010)
New Revision: 900
Modified:
wasko/branches/2.0/waskaweb/lib/filters.py
Log:
* waskaweb/lib/filters.py (shorten): Modifiy shorten function to behave like getCaseShort.
Modified: wasko/branches/2.0/waskaweb/lib/filters.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/filters.py 2010-01-26 14:42:14 UTC (rev 899)
+++ wasko/branches/2.0/waskaweb/lib/filters.py 2010-01-26 16:39:17 UTC (rev 900)
@@ -44,8 +44,9 @@
return escape(text, True)
def shorten(text, length=40):
+ shortcut = "..."
if len(text) > length:
- text = text[0:length] + "..."
+ text = text[0:length-len(shortcut)] + shortcut
return text
def nl_to_br(text):
More information about the Mpuls-commits
mailing list