[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 17 May 2004 18:26:31 -0000
albertel Mon May 17 14:26:31 2004 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
- fix from Guy Ash.
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.77 loncom/homework/default_homework.lcpm:1.78
--- loncom/homework/default_homework.lcpm:1.77 Fri Mar 26 15:10:42 2004
+++ loncom/homework/default_homework.lcpm Mon May 17 14:26:31 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.77 2004/03/26 20:10:42 albertel Exp $
+# $Id: default_homework.lcpm,v 1.78 2004/05/17 18:26:31 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -513,7 +513,7 @@
my $molecule = $2;
# subscripts
- $molecule =~ s|(?<=[a-zA-Z\[\s])(\d+)|<sub>$1</sub>|g;
+ $molecule =~ s|(?<=[a-zA-Z\)\]\s])(\d+)|<sub>$1</sub>|g;
# superscripts
$molecule =~ s|\^(\d*[+\-]*)|<sup>$1</sup>|g;
# strip whitespace