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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 30 Apr 2003 13:44:30 -0000


sakharuk		Wed Apr 30 09:44:30 2003 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
   Problem with 2mm has solved. I've added spce (exactly 2 mm) before printing number of tries. You can not just add this amount of space before </part> because you have to separate number of tries (which appears earlier) with box for the input of data.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.96 loncom/homework/inputtags.pm:1.97
--- loncom/homework/inputtags.pm:1.96	Thu Apr 24 08:44:54 2003
+++ loncom/homework/inputtags.pm	Wed Apr 30 09:44:30 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.96 2003/04/24 12:44:54 sakharuk Exp $
+# $Id: inputtags.pm,v 1.97 2003/04/30 13:44:30 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -530,8 +530,8 @@
     if ( $maxtries eq 'con_lost' ) { $maxtries = '0'; } 
     if ( $showbutton ) {
       if ($target eq 'tex') {
-	  if ($ENV{'request.state'} ne "construct") {
-	      $trystr = ' {\vskip -1 mm \small \textit{Tries} '.$tries.'/'.$maxtries.'} \vskip 2 mm ';
+	  if ($ENV{'request.state'} ne "construct" && $Apache::lonhomework::type ne 'exam') {
+	      $trystr = ' {\vskip 1 mm \small \textit{Tries} '.$tries.'/'.$maxtries.'} \vskip 2 mm ';
 	  } else {
 	      $trystr = '\vskip 0 mm ';
 	  }