[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /xml londefdef.pm
raeburn
raeburn@source.lon-capa.org
Sat, 13 Nov 2010 01:43:01 -0000
raeburn Sat Nov 13 01:43:01 2010 EDT
Modified files: (Branch: version_2_9_X)
/loncom/xml londefdef.pm
Log:
- Backport 1.425 (part).
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.403.4.2 loncom/xml/londefdef.pm:1.403.4.3
--- loncom/xml/londefdef.pm:1.403.4.2 Fri Aug 20 21:20:24 2010
+++ loncom/xml/londefdef.pm Sat Nov 13 01:43:01 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.403.4.2 2010/08/20 21:20:24 raeburn Exp $
+# $Id: londefdef.pm,v 1.403.4.3 2010/11/13 01:43:01 raeburn Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -2702,7 +2702,7 @@
#
sub cell_config_hash {
- my ($align, $rowspan, $colspan) = @_;
+ my ($align, $rowspan, $colspan, $width) = @_;
my %config;
if ($align ne '') {
$config{'halign'} = $align;
@@ -2713,6 +2713,9 @@
if ($rowspan ne '') {
$config{'rowspan'} = $rowspan;
}
+ if ($width ne '') {
+ $config{'width'} = $width;
+ }
return \%config;
}
@@ -2724,11 +2727,11 @@
# attributes, but empty of text. end_td_tex will
# fetch the contents from the recursive parse and
# fill the cell with them:
- my $align = &Apache::lonxml::get_param('align', $parstack, $safeeval, undef, 1);
- my $rowspan = &Apache::lonxml::get_param('rowspan', $parstack, $safeeval, undef, 1);
- my $colspan = &Apache::lonxml::get_param('colspan', $parstack, $safeeval, undef, 1);
-
- my $config = &cell_config_hash($align, $rowspan, $colspan);
+ my $align = &Apache::lonxml::get_param('align', $parstack, $safeeval);
+ my $rowspan = &Apache::lonxml::get_param('rowspan', $parstack, $safeeval);
+ my $colspan = &Apache::lonxml::get_param('colspan', $parstack, $safeeval);
+ my $width = &Apache::lonxml::get_param('TeXwidth', $parstack, $safeeval);
+ my $config = &cell_config_hash($align, $rowspan, $colspan, $width);
my $table = $Apache::londefdef::table[-1];
$table->add_cell('', $config);