[LON-CAPA-cvs] cvs: loncom /homework outputtags.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 26 Jul 2002 19:14:13 -0000
sakharuk Fri Jul 26 15:14:13 2002 EDT
Modified files:
/loncom/homework outputtags.pm
Log:
Added corrections for & symbol in the title of problem.
Index: loncom/homework/outputtags.pm
diff -u loncom/homework/outputtags.pm:1.16 loncom/homework/outputtags.pm:1.17
--- loncom/homework/outputtags.pm:1.16 Mon Jul 22 14:43:37 2002
+++ loncom/homework/outputtags.pm Fri Jul 26 15:14:13 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# tags that create controlled output
#
-# $Id: outputtags.pm,v 1.16 2002/07/22 18:43:37 sakharuk Exp $
+# $Id: outputtags.pm,v 1.17 2002/07/26 19:14:13 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -82,7 +82,8 @@
$result.='</td></tr>';
$result.=&Apache::edit::end_table();
} elsif ($target eq 'tex') {
- $result='\textbf{'.$Apache::lonhomework::name.'}';
+ $Apache::lonhomework::name=~s/&/\&/g;
+ $result='\vskip 0 mm\textbf{'.$Apache::lonhomework::name.'}\vskip 0 mm';
}
return $result;
}