diff options
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module index a564c0c30..68fd4d864 100644 --- a/modules/node.module +++ b/modules/node.module @@ -177,15 +177,15 @@ function node_teaser($body) { ** we try to split at paragraph boundaries. */ - if ($length = strpos($body, "<br />", $size)) { - return substr($body, 0, $length); + if ($length = strpos($body, "</p>", $size)) { + return substr($body, 0, $length + 4); } - if ($length = strpos($body, "<br>", $size)) { + if ($length = strpos($body, "<br />", $size)) { return substr($body, 0, $length); } - if ($length = strpos($body, "</p>", $size)) { + if ($length = strpos($body, "<br>", $size)) { return substr($body, 0, $length); } |