[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm task.css

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 28 Nov 2006 16:36:08 -0000


albertel		Tue Nov 28 11:36:08 2006 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm task.css 
  Log:
  - fix the indenting of sub questions
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.210 loncom/homework/bridgetask.pm:1.211
--- loncom/homework/bridgetask.pm:1.210	Mon Nov 27 18:33:01 2006
+++ loncom/homework/bridgetask.pm	Tue Nov 28 11:36:04 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.210 2006/11/27 23:33:01 albertel Exp $
+# $Id: bridgetask.pm,v 1.211 2006/11/28 16:36:04 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2300,8 +2300,8 @@
 	    # those old ones will continue to work.  # It puts the
 	    # LC_question div to come after any starting closie div
 	    # that the dimension produces
-	    if ($result =~ m{\s*</div>}) {
-		$result =~ s{(\s*</div>)}
+	    if ($result =~ m{^\s*</div>}) {
+		$result =~ s{^(\s*</div>)}
 		            {$1\n<div id="$dim" class="LC_question">};
 	    } else {
 		$result = "\n".'<div id="'.$dim.'" class="LC_question">'.
Index: loncom/homework/task.css
diff -u loncom/homework/task.css:1.5 loncom/homework/task.css:1.6
--- loncom/homework/task.css:1.5	Mon Nov 13 15:30:16 2006
+++ loncom/homework/task.css	Tue Nov 28 11:36:05 2006
@@ -11,6 +11,10 @@
 }
 */
 
+div.LC_question div.LC_question {
+    margin-left: 5em;
+}
+
 ul.LC_GRADING_handininfo {
 	border: 1px solid black;
 	position: fixed;