[LON-CAPA-cvs] cvs: loncom /homework edit.pm insertlist.tab

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 08 Oct 2003 16:46:38 -0000


albertel		Wed Oct  8 12:46:38 2003 EDT

  Modified files:              
    /loncom/homework	edit.pm insertlist.tab 
  Log:
  - BUG#2270, hint insertion should toss in a Text Block
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.66 loncom/homework/edit.pm:1.67
--- loncom/homework/edit.pm:1.66	Fri Sep 19 15:37:53 2003
+++ loncom/homework/edit.pm	Wed Oct  8 12:46:38 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.66 2003/09/19 19:37:53 matthew Exp $
+# $Id: edit.pm,v 1.67 2003/10/08 16:46:38 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -283,6 +283,8 @@
 <formularesponse answer="" samples="">
     <textline />
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </formularesponse>';
 }
@@ -292,6 +294,8 @@
 <numericalresponse answer="">
     <textline />
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </numericalresponse>';
 }
@@ -301,6 +305,8 @@
 <stringresponse answer="" type="">
     <textline />
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </stringresponse>';
 }
@@ -318,6 +324,8 @@
     <foilgroup>
     </foilgroup>
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </imageresponse>';
 }
@@ -328,6 +336,8 @@
     <foilgroup options="">
     </foilgroup>
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </optionresponse>';
 }
@@ -338,6 +348,8 @@
     <foilgroup>
     </foilgroup>
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </radiobuttonresponse>';
 }
@@ -348,6 +360,8 @@
     <foilgroup options="">
     </foilgroup>
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </rankresponse>';
 }
@@ -360,6 +374,8 @@
       </itemgroup>
     </foilgroup>
     <hintgroup>
+    <startouttext/>
+    <endouttext />
     </hintgroup>
 </matchresponse>';
 }
@@ -372,6 +388,14 @@
     <startouttext/>
     <endouttext />
 </hintpart>';
+}
+
+sub insert_hintgroup {
+  return '
+<hintgroup>
+    <startouttext/>
+    <endouttext />
+</hintgroup>';
 }
 
 sub insert_numericalhint {
Index: loncom/homework/insertlist.tab
diff -u loncom/homework/insertlist.tab:1.41 loncom/homework/insertlist.tab:1.42
--- loncom/homework/insertlist.tab:1.41	Tue Jul 29 11:05:53 2003
+++ loncom/homework/insertlist.tab	Wed Oct  8 12:46:38 2003
@@ -5,7 +5,7 @@
 stringresponse,Response: String,#00cc55,insert_stringresponse
 formularesponse,Response: Formula,#22cc55,insert_formularesponse
 essayresponse,Response: Essay,#33cc55,insert_essayresponse
-hintgroup,Hint,#accacc,default
+hintgroup,Hint,#accacc,insert_hintgroup
 hintpart,Conditional Hint,#ccaacc,insert_hintpart
 formulahint,Formula Hint Condition,#ccaacc,insert_formulahint
 numericalhint,Numerical Hint Condition,#ccaacc,insert_numericalhint