From 4700b7757e8898a152e74c04aa9bf2915eaeb75c Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Mon, 31 Jan 2005 01:42:51 +0000 Subject: [PATCH] limit the description of an appversion to it's first sentence instead of a fixed number of letters --- appview.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/appview.php b/appview.php index 530f574..b3b8c65 100644 --- a/appview.php +++ b/appview.php @@ -58,13 +58,11 @@ function display_bundle($appId) $bgcolor = ($c % 2 == 0) ? "color0" : "color1"; //format desc - $desc = substr(stripslashes($ob->description),0,50); - if(strlen($desc) == 50) $desc .= " ..."; - + $aDesc = explode("\n",$oApp->data->description,2); //display row echo "\n"; echo " ".stripslashes($ob->appName)."\n"; - echo " $desc  \n"; + echo " ".$aDesc[0]."\n"; echo "\n\n"; $c++;