summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-04-21 19:16:12 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-04-21 19:16:12 +0000
commitd469df81c7e726a268341b8dfc4b1db9d66ce066 (patch)
treebe6d77dda96cc523e39917eade3c87f34bb00345
parent86f2764a7b0d1c2d92f91ea13879d312901ed3ee (diff)
downloadbrdo-d469df81c7e726a268341b8dfc4b1db9d66ce066.tar.gz
brdo-d469df81c7e726a268341b8dfc4b1db9d66ce066.tar.bz2
#59428: Correct teaser for japanese period character
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index a25643727..34f2c3054 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -184,7 +184,7 @@ 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, '。' => 3, '؟ ' => 1);
foreach ($breakpoints as $point => $charnum) {
if ($length = strpos($body, $point, $size)) {
return substr($body, 0, $length + $charnum);
diff --git a/modules/node/node.module b/modules/node/node.module
index a25643727..34f2c3054 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -184,7 +184,7 @@ 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, '。' => 3, '؟ ' => 1);
foreach ($breakpoints as $point => $charnum) {
if ($length = strpos($body, $point, $size)) {
return substr($body, 0, $length + $charnum);