Update document.item.php

This commit is contained in:
sejin7940 2015-01-31 09:41:36 +09:00
parent b83bf58e41
commit 44acf38e84

View file

@ -524,6 +524,8 @@ class documentItem extends Object
function getSummary($str_size = 50, $tail = '...')
{
$content = $this->getContent(FALSE, FALSE);
$content = nl2br($content);
// For a newlink, inert a whitespace
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);