[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 26 Aug 2003 21:52:46 -0000
albertel Tue Aug 26 17:52:46 2003 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
- Ed want to use TeXwidth or texwidth
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.85 loncom/xml/lonplot.pm:1.86
--- loncom/xml/lonplot.pm:1.85 Tue Jun 10 14:46:02 2003
+++ loncom/xml/lonplot.pm Tue Aug 26 17:52:46 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.85 2003/06/10 18:46:02 matthew Exp $
+# $Id: lonplot.pm,v 1.86 2003/08/26 21:52:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -970,8 +970,13 @@
sub get_attributes{
my ($values,$defaults,$parstack,$safeeval,$tag) = @_;
foreach my $attr (keys(%{$defaults})) {
- $values->{$attr} =
- &Apache::lonxml::get_param($attr,$parstack,$safeeval);
+ if ($attr eq 'texwidth') {
+ $values->{$attr} =
+ &Apache::lonxml::get_param($attr,$parstack,$safeeval,undef,1);
+ } else {
+ $values->{$attr} =
+ &Apache::lonxml::get_param($attr,$parstack,$safeeval);
+ }
if ($values->{$attr} eq '' | !defined($values->{$attr})) {
$values->{$attr} = $defaults->{$attr}->{'default'};
next;