[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 19 Aug 2004 02:08:27 -0000


albertel		Wed Aug 18 22:08:27 2004 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - logic was incorrect, and thus invalid html was generated in tex mode and thus printing broke.
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.116 loncom/interface/lonfeedback.pm:1.117
--- loncom/interface/lonfeedback.pm:1.116	Tue Aug 17 10:27:19 2004
+++ loncom/interface/lonfeedback.pm	Wed Aug 18 22:08:27 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.116 2004/08/17 14:27:19 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.117 2004/08/19 02:08:27 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -446,11 +446,11 @@
                 $alldiscussion{$_} = $_;
             }
             unless ( ($notshown{$alldiscussion{$_}} eq '1') || ($shown{$alldiscussion{$_}} == 0) ) {
-                unless ($outputtarget eq 'tex' && $outputtarget eq 'export') {
+                if ($outputtarget ne 'tex' && $outputtarget ne 'export') {
 		    $discussion.="\n<tr>";
 		}
 	        my $thisdepth=$depth[$alldiscussion{$_}];
-                unless ($outputtarget eq 'tex' || $outputtarget eq 'export') {
+                if ($outputtarget ne 'tex' && $outputtarget ne 'export') {
 		    for (1..$thisdepth) {
 			$discussion.='<td>&nbsp;&nbsp;&nbsp;</td>';
 		    }