--- loncom/interface/lonchatfetch.pm 2005/04/07 06:56:22 1.17
+++ loncom/interface/lonchatfetch.pm 2006/03/19 22:48:53 1.19
@@ -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.19 2006/03/19 22:48:53 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'} &&
@@ -150,21 +150,19 @@ sub handler {
}
}
my $participant_output=join('
',sort @participants);
- my $html=&Apache::lonxml::xmlbegin();
+ my $start_page =
+ &Apache::loncommon::start_page('Chat',undef,
+ {'redirect' => [5,"/adm/chatfetch?lastid=$lastid"],
+ 'only_body' => 1,});
+ my $end_page = &Apache::loncommon::end_page();
$r->print(<
-The LearningOnline Network with CAPA
-
-
-
-
$participant_output
-
-