--- loncom/interface/lonchatfetch.pm 2009/07/26 16:53:40 1.35 +++ loncom/interface/lonchatfetch.pm 2009/10/23 10:21:00 1.36 @@ -1,7 +1,7 @@ # The LearningOnline Network # Chat Fetching # -# $Id: lonchatfetch.pm,v 1.35 2009/07/26 16:53:40 kalberla Exp $ +# $Id: lonchatfetch.pm,v 1.36 2009/10/23 10:21:00 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -128,10 +128,16 @@ sub handler { $contrib=&unescape($contrib); &Apache::lonfeedback::newline_to_br(\$contrib); ($contrib,my $errors)=&Apache::lontexconvert::msgtexconverted($contrib); - if ($errors) { $contrib.=&mt('[Message not fully displayed due to incorrect embedded TeX]'); } + if ($errors) { + $contrib.=' ' + .&mt('(Message not fully displayed due to incorrect embedded TeX.)') + .''; + } if ($errors && $snum eq $env{'user.name'} && $sdom eq $env{'user.domain'} ) { - $contrib.='
'.&mt('[TeX error message: [_1]',$errors); + $contrib.='
' + .&mt('TeX error message: [_1]',$errors) + .''; } $contrib=~s/\n/ /g; $contrib=~s/\'/\&\#39\;/g; @@ -163,9 +169,9 @@ sub handler { $color=substr($color,0,6); my $timestamp=localtime($msgtime); my ($mhour,$mmin,$msec)=($timestamp=~/(\d\d)\:(\d\d)\:(\d\d)/); - $newstuff.=''. + $newstuff.=''. $sender.' ('.$mhour.':'.$mmin.':'.$msec.'): '. - $contrib."
"; + $contrib."
"; $bottomid='LC_'.$id; } else { $entry=~/^(\w+)/;