--- loncom/interface/lonannounce.pm 2006/04/22 16:32:55 1.49
+++ loncom/interface/lonannounce.pm 2006/04/22 16:35:31 1.50
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Announce
#
-# $Id: lonannounce.pm,v 1.49 2006/04/22 16:32:55 albertel Exp $
+# $Id: lonannounce.pm,v 1.50 2006/04/22 16:35:31 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -189,8 +189,9 @@ sub normalcell {
$fullmsg=~s/[\n\r]/\\n/gs;
$fullmsg=&HTML::Entities::encode($fullmsg,'<>&"\'');
$fullmsg=~s/&/\\&/g;
+ my $short_msg = substr($msg,0,20).((length($msg) > 20)?'...':'');
$output.=''.
- substr($msg,0,20).'...
';
+ $short_msg.'
';
}
}
return '