--- loncom/interface/lonchatfetch.pm 2005/04/07 06:56:22 1.17 +++ loncom/interface/lonchatfetch.pm 2005/06/06 02:29:46 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network # Chat Fetching # -# $Id: lonchatfetch.pm,v 1.17 2005/04/07 06:56:22 albertel Exp $ +# $Id: lonchatfetch.pm,v 1.18 2005/06/06 02:29:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,7 +103,7 @@ sub handler { my ($sdom,$snum,$anon,$contrib)=split(/\:/, &Apache::lonnet::unescape($msg)); $contrib=&Apache::lonnet::unescape($contrib); - $contrib=~s/\n/\
/g; + &Apache::lonfeedback::newline_to_br(\$contrib); ($contrib,my $errors)=&Apache::lontexconvert::msgtexconverted($contrib); if ($errors) { $contrib.="[Message not fully displayed due to incorrect embedded TeX]"; } if ($errors && $snum eq $env{'user.name'} &&