--- loncom/interface/lonfeedback.pm 2005/05/24 15:15:59 1.164
+++ loncom/interface/lonfeedback.pm 2005/06/06 02:16:09 1.165
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.164 2005/05/24 15:15:59 albertel Exp $
+# $Id: lonfeedback.pm,v 1.165 2005/06/06 02:16:09 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1205,7 +1205,7 @@ sub get_post_contents {
my ($timesent,$attachmsg);
my %currattach = ();
$timesent = &Apache::lonlocal::locallocaltime($postversions[$i]);
- $$messages{$i}=~s/\n/\
/g;
+ &newline_to_br(\$messages->{$i});
$$messages{$i}=&Apache::lontexconvert::msgtexconverted($$messages{$i});
$$subjects{$i}=~s/\n/\
/g;
$$subjects{$i}=&Apache::lontexconvert::msgtexconverted($$subjects{$i});
@@ -1375,7 +1375,7 @@ END
&get_post_versions(\%msgversions,$contrib{$idx.':message'},0,$numoldver);
$message = $msgversions{$numoldver};
}
- $message=~s/\n/\
/g;
+ &newline_to_br(\$message);
$quote='
'.&Apache::lontexconvert::msgtexconverted($message).''; if ($idx > 0) { my %subversions = (); @@ -2603,7 +2603,7 @@ sub show_preview { &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; my $message=&clear_out_html($env{'form.comment'}); - $message=~s/\n/\