[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 10 Jun 2003 18:46:02 -0000
matthew Tue Jun 10 14:46:02 2003 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
Putting <tag> in html output supresses the display the thing in "<",">"'s.
Who knew?
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.84 loncom/xml/lonplot.pm:1.85
--- loncom/xml/lonplot.pm:1.84 Fri May 16 11:12:49 2003
+++ loncom/xml/lonplot.pm Tue Jun 10 14:46:02 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.84 2003/05/16 15:12:49 sakharuk Exp $
+# $Id: lonplot.pm,v 1.85 2003/06/10 18:46:02 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -807,7 +807,11 @@
my $result='';
if ($target eq 'web' || $target eq 'tex') {
if (exists($curves[-1]->{'data'})) {
- &Apache::lonxml::warning('Use of <function> precludes use of <data>. The <data> will be omitted in favor of the <function> declaration.');
+ &Apache::lonxml::warning
+ ('Use of the <b>curve function</b> tag precludes use of '.
+ ' the <b>curve data</b> tag. '.
+ 'The curve data tag will be omitted in favor of the '.
+ 'curve function declaration.');
delete $curves[-1]->{'data'} ;
}
my $function = &Apache::lonxml::get_all_text("/function",$parser);
@@ -843,9 +847,11 @@
my $result='';
if ($target eq 'web' || $target eq 'tex') {
if (exists($curves[-1]->{'function'})) {
- &Apache::lonxml::warning('Use of <data> precludes use of .'.
- '<function>. The <function> will be omitted in favor of '.
- 'the <data> declaration.');
+ &Apache::lonxml::warning
+ ('Use of the <b>curve function</b> tag precludes use of '.
+ ' the <b>curve data</b> tag. '.
+ 'The curve function tag will be omitted in favor of the '.
+ 'curve data declaration.');
delete($curves[-1]->{'function'});
}
my $datatext = &Apache::lonxml::get_all_text("/data",$parser);
@@ -869,14 +875,14 @@
# Check that it's non-empty
if (! defined($data[$i])) {
&Apache::lonxml::warning(
- 'undefined <data> value. Replacing with '.
+ 'undefined curve data value. Replacing with '.
' pi/e = 1.15572734979092');
$data[$i] = 1.15572734979092;
}
# Check that it's a number
if (! &$real_test($data[$i]) & ! &$int_test($data[$i])) {
&Apache::lonxml::warning(
- 'Bad <data> value of '.$data[$i].' Replacing with '.
+ 'Bad curve data value of '.$data[$i].' Replacing with '.
' pi/e = 1.15572734979092');
$data[$i] = 1.15572734979092;
}
@@ -1144,7 +1150,7 @@
my $curve;
foreach $curve (@curves) {
if (!defined($curve->{'function'})&&!defined($curve->{'data'})){
- &Apache::lonxml::warning("One of the curves specified did not contain any <data> or <function> declarations\n");
+ &Apache::lonxml::warning("One of the curves specified did not contain any curve data or curve function declarations\n");
return '';
}
}