[LON-CAPA-cvs] cvs: loncom /homework matchresponse.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 15 Sep 2003 18:13:52 -0000
sakharuk Mon Sep 15 14:13:52 2003 EDT
Modified files:
/loncom/homework matchresponse.pm
Log:
Bug 2177 (Match items have too much white space) is fixed.
Index: loncom/homework/matchresponse.pm
diff -u loncom/homework/matchresponse.pm:1.21 loncom/homework/matchresponse.pm:1.22
--- loncom/homework/matchresponse.pm:1.21 Tue Aug 19 11:24:52 2003
+++ loncom/homework/matchresponse.pm Mon Sep 15 14:13:52 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Full matching style response
#
-# $Id: matchresponse.pm,v 1.21 2003/08/19 15:24:52 sakharuk Exp $
+# $Id: matchresponse.pm,v 1.22 2003/09/15 18:13:52 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -144,7 +144,7 @@
$table.='</table>';
$Apache::matchresponse::itemtable{'display'}=$table;
} elsif ($target eq 'tex') {
- my $table=' \\\\\\\\ \begin{description} ';
+ my $table=' \begin{description} ';
my $i=0;
foreach my $name (@names) {
$Apache::response::itemgroup{$name.'.text'}=~s/\$\$/\$/g;
@@ -152,7 +152,7 @@
$Apache::response::itemgroup{$name.'.text'};
$i++;
}
- $table.=' \end{description} \strut \\\\ ';
+ $table.=' \end{description} \strut ';
$Apache::matchresponse::itemtable{'display'}=$table;
}
return $result;
@@ -432,7 +432,7 @@
$question.='\vskip -2 mm\parbox{\textwidth}{\begin{enumerate}\item[\textbf{'.$internal_counter.'}.]\parbox{\textwidth - 5 mm}{'.&Apache::optionresponse::bubbles(\@used_letters,\@emptyItems).'}\end{enumerate}} \vskip -10 mm \strut ';
$internal_counter++;
} else {
- $question.=' \\\\ '.$optionlist.$text."\n";
+ $question.=' '.$optionlist.$text.'\strut\\\\\strut '."\n";
}
}
$temp++;