[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 05 Aug 2002 15:36:44 -0000
sakharuk Mon Aug 5 11:36:44 2002 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Correction in <m> tag to print the nicely written problems (as in apcalc)
and badly written problems (as in the Ray's case) with something like
<m>$ \\ \\ \\ $</m>.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.82 loncom/xml/londefdef.pm:1.83
--- loncom/xml/londefdef.pm:1.82 Thu Aug 1 15:47:29 2002
+++ loncom/xml/londefdef.pm Mon Aug 5 11:36:44 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.82 2002/08/01 19:47:29 sakharuk Exp $
+# $Id: londefdef.pm,v 1.83 2002/08/05 15:36:44 sakharuk Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -91,7 +91,7 @@
#&Apache::lonxml::debug("M is ends with:$currentstring:");
} elsif ($target eq 'tex') {
$currentstring = &Apache::lonxml::get_all_text_unbalanced("/m",$parser);
- if ($currentstring=~/\s*\\\\\s*/) {$currentstring = ' \vskip 0 mm ';}
+ if ($currentstring=~/^(\s*\\\\\s*)*$/) {$currentstring = ' \vskip 0 mm ';}
} else {
my $inside = &Apache::lonxml::get_all_text_unbalanced("/m",$parser);
}