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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 19 Nov 2002 14:59:35 -0000


sakharuk		Tue Nov 19 09:59:35 2002 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Added empty box for 'tex' output of <textline /> tag according the 
  bugs 919 (Lars Jensen) and 681 (Ray Batchelor). From my personal viewpoint 
  this may be bad idea in general though in some cases it is useful. Probably,
  we have to specify somehow whet it has to be printed and to skip this tag in
  other situations. By the way, I amn't sure that the chosen presentation is the 
  best one. Any suggestions are welcomed.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.73 loncom/homework/inputtags.pm:1.74
--- loncom/homework/inputtags.pm:1.73	Fri Nov  8 15:34:10 2002
+++ loncom/homework/inputtags.pm	Tue Nov 19 09:59:35 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.73 2002/11/08 20:34:10 sakharuk Exp $
+# $Id: inputtags.pm,v 1.74 2002/11/19 14:59:35 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -169,6 +169,8 @@
   } elsif ($target eq 'modified') {
     my $constructtag=&Apache::edit::get_new_args($token,$parstack,$safeeval,'size');
     if ($constructtag) { $result = &Apache::edit::rebuild_tag($token); }
+  } elsif ($target eq 'tex') {
+      $result='\framebox[1cm][s]{\hfill}';
   }
   return $result;
 }