From 339c841c9e4cc31a8c469a4eb035a8e47d55e50c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 3 Mar 2010 21:11:30 -0700 Subject: [PATCH] Factor ellipsis size into Horde_String::truncate() output. --- framework/Util/lib/Horde/String.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Util/lib/Horde/String.php b/framework/Util/lib/Horde/String.php index 557621ced..db02febf2 100644 --- a/framework/Util/lib/Horde/String.php +++ b/framework/Util/lib/Horde/String.php @@ -601,7 +601,7 @@ class Horde_String static public function truncate($text, $length = 100) { return (self::length($text) > $length) - ? self::substr($text, 0, $length) . ' ...' + ? self::substr($text, 0, $length - 3) . ' ...' : $text; } -- 2.11.0