[LON-CAPA-cvs] cvs: loncom /homework optionresponse.pm
raeburn
raeburn at source.lon-capa.org
Wed Apr 18 15:45:39 EDT 2012
raeburn Wed Apr 18 19:45:39 2012 EDT
Modified files:
/loncom/homework optionresponse.pm
Log:
- Do a better job of preventing bubble and letter (A etc.) bleeding from
left column to adjacent right column (or being truncated, if in right
column) when creating 2-column printout for optionresponse in exam mode.
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.184 loncom/homework/optionresponse.pm:1.185
--- loncom/homework/optionresponse.pm:1.184 Thu Dec 15 01:21:28 2011
+++ loncom/homework/optionresponse.pm Wed Apr 18 19:45:39 2012
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.184 2011/12/15 01:21:28 raeburn Exp $
+# $Id: optionresponse.pm,v 1.185 2012/04/18 19:45:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -806,7 +806,7 @@
if ($response eq 'rankresponse') {$opt[$ind]='Rank '.$opt[$ind];}
if ($ind==0) {$leftmargin=6;} else {$leftmargin=10;}
- $current_length += (length($opt[$ind])+length($item)+4)*2;
+ $current_length += (length($opt[$ind])+length($item)+5)*2;
if ($current_length<($textwidth-$leftmargin) and $ind!=$number_of_bubbles) {
More information about the LON-CAPA-cvs
mailing list