--- loncom/xml/londefdef.pm 2003/05/07 16:59:01 1.131 +++ loncom/xml/londefdef.pm 2003/05/07 17:24:16 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.131 2003/05/07 16:59:01 sakharuk Exp $ +# $Id: londefdef.pm,v 1.132 2003/05/07 17:24:16 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -1894,7 +1894,7 @@ sub end_td { } else { if ($data=~m/width\s*=\s*(\d+\.?\d*\s*(mm|cm|in|pc|pt)*)/) { my $current_length=&recalc($1); - $current_length=~/(\d+)/; + $current_length=~/(\d+\.?\d*)/; $Apache::londefdef::table[-1]{'TeXlength'} .= $1.','; $Apache::londefdef::table[-1]{'length'} .= '0,'; } else { @@ -3123,7 +3123,7 @@ sub image_replication { sub recalc { my $argument = shift; if (not $argument=~/(mm|cm|in|pc|pt)/) {return $argument.' mm';} - $argument=~/\s*(\d+)\s*(mm|cm|in|pc|pt)/; + $argument=~/\s*(\d+\.?\d*)\s*(mm|cm|in|pc|pt)/; my $value=$1; my $units=$2; if ($units eq 'cm') {