From: Andrew Dolgov Date: Thu, 27 Jun 2013 17:05:10 +0000 (+0400) Subject: do not show lone dash in collapsed cdm when content preview is disabled X-Git-Tag: 1.9~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fac096405338e0f46fa248320318436d862678fc;p=tt-rss.git do not show lone dash in collapsed cdm when content preview is disabled --- diff --git a/classes/feeds.php b/classes/feeds.php index 83736925..33f239ee 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -361,7 +361,7 @@ class Feeds extends Handler_Protected { make_local_datetime($line["date_entered"], false)); if (get_pref('SHOW_CONTENT_PREVIEW')) { - $content_preview = truncate_string(strip_tags($line["content_preview"]), + $content_preview = " — " . truncate_string(strip_tags($line["content_preview"]), 250); } @@ -456,7 +456,7 @@ class Feeds extends Handler_Protected { if (get_pref('SHOW_CONTENT_PREVIEW')) { if ($content_preview) { - $reply['content'] .= " - $content_preview"; + $reply['content'] .= "$content_preview"; } } @@ -575,7 +575,7 @@ class Feeds extends Handler_Protected { $excerpt_hidden = "style=\"display : none\""; $reply['content'] .= " - $content_preview"; + id=\"CEXC-$id\" class=\"cdmExcerpt\">$content_preview"; $reply['content'] .= ""; if (!get_pref('VFEED_GROUP_BY_FEED')) {