From f66e690098fba256001658837d95459c32467356 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 11 Apr 2010 14:52:13 +0000 Subject: - Patch #269911 by Freso: wrong trim used for search result. --- modules/search/search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/search') diff --git a/modules/search/search.module b/modules/search/search.module index 376a98842..6c23c1bb4 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -1077,7 +1077,7 @@ function search_excerpt($keys, $text) { // If we didn't find anything, return the beginning. if (count($ranges) == 0) { - return truncate_utf8($text, 256) . ' ...'; + return truncate_utf8($text, 256, TRUE, TRUE); } // Sort the text ranges by starting position. -- cgit v1.2.3