summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-06-06 14:07:04 +0000
committerDries Buytaert <dries@buytaert.net>2005-06-06 14:07:04 +0000
commit8436082fe1364dfe35461e5d8fc737a43c06abee (patch)
treeb1923c3f21ad87949351d925020203c003192574 /modules/node.module
parent596843dae6aa49ff7fc301da92d2d2d1e45dcb98 (diff)
downloadbrdo-8436082fe1364dfe35461e5d8fc737a43c06abee.tar.gz
brdo-8436082fe1364dfe35461e5d8fc737a43c06abee.tar.bz2
- Removing some whitespace
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module4
1 files changed, 2 insertions, 2 deletions
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('</p>' => 4, '<br />' => 0, '<br>' => 0, "\n" => 0, '. ' => 1, '! ' => 1, '? ' => 1, '。' => 1, '؟ ' => 1);
+ $breakpoints = array('</p>' => 4, '<br />' => 0, '<br>' => 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);
}