[LON-CAPA-cvs] cvs: loncom /homework radiobuttonresponse.pm

raeburn raeburn at source.lon-capa.org
Tue Dec 18 22:44:29 EST 2018


raeburn		Wed Dec 19 03:44:29 2018 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - Bug 6724
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.160 loncom/homework/radiobuttonresponse.pm:1.161
--- loncom/homework/radiobuttonresponse.pm:1.160	Fri Jan 22 22:42:51 2016
+++ loncom/homework/radiobuttonresponse.pm	Wed Dec 19 03:44:28 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.160 2016/01/22 22:42:51 damieng Exp $
+# $Id: radiobuttonresponse.pm,v 1.161 2018/12/19 03:44:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1047,7 +1047,15 @@
 	    }
 	    my $preindent;
 	    if ($bubble_number > 0) {
-		$preindent = '\hspace*{3 mm}';
+                my $offset = 3;
+                if ($Apache::lonxml::counter) {
+                    if ($identifier) {
+                        $offset += 2 * (length($identifier)-1);
+                    } else {
+                        $offset += 2 * (length($Apache::lonxml::counter)-1);
+                    }
+                }
+                $preindent = '\hspace*{'.$offset.' mm}';
 	    }
 	    my $foiltext = $Apache::response::foilgroup{$name . '.text'};
 	    $foiltext =~ s/\\noindent//; # forgive me for I have sinned..




More information about the LON-CAPA-cvs mailing list