From 8436082fe1364dfe35461e5d8fc737a43c06abee Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Jun 2005 14:07:04 +0000 Subject: - Removing some whitespace --- modules/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 3f4fd75bd..412aea581 100644 --- a/modules/node.module +++ b/modules/node.module @@ -191,13 +191,13 @@ function node_teaser($body, $format = NULL) { // the Blogger API). In this case, we try to split at paragraph boundaries. // When even the first paragraph is too long, we try to split at the end of // the next sentence. - $breakpoints = array('

' => 4, '
' => 0, '
' => 0, "\n" => 0, '. ' => 1, '! ' => 1, '? ' => 1, '。' => 1, '؟ ' => 1); + $breakpoints = array('

' => 4, '
' => 0, '
' => 0, "\n" => 0, '. ' => 1, '! ' => 1, '? ' => 1, '。' => 1, '؟ ' => 1); foreach ($breakpoints as $point => $charnum) { if ($length = strpos($body, $point, $size)) { return substr($body, 0, $length + $charnum); } } - + // If all else fails, we simply truncate the string. return truncate_utf8($body, $size); } -- cgit v1.2.3