--- loncom/html/res/adm/pages/annotator/admannotations.pm 2008/11/20 14:37:45 1.30
+++ loncom/html/res/adm/pages/annotator/admannotations.pm 2009/01/08 19:37:53 1.32
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# This will take annotations and then plug them into a page.
#
-# $Id: admannotations.pm,v 1.30 2008/11/20 14:37:45 jms Exp $
+# $Id: admannotations.pm,v 1.32 2009/01/08 19:37:53 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -41,8 +41,7 @@ use Apache::lonlocal;
sub write_annotation {
my ($symb, $enc, $annotation) = @_;
-
- $annotation=~s/$^\s*$//;
+ $annotation=~s/^\s*$//;
my $key = $symb;
if (!$enc) {
$key =
@@ -180,8 +179,8 @@ sub handler {
my $page;
- my ($symb_old,$symb_old_enc) = &Apache::loncommon::clean_symb($env{'form.symbold'});
- my ($symb_new,$symb_new_enc) = &Apache::loncommon::clean_symb($env{'form.symbnew'});
+ my ($symb_old,$symb_old_enc) = &Apache::loncommon::clean_symb($env{'form.symbold'},1);
+ my ($symb_new,$symb_new_enc) = &Apache::loncommon::clean_symb($env{'form.symbnew'},1);
my $annotation=$env{'form.annotation'};