--- loncom/homework/outputtags.pm 2001/01/11 16:11:16 1.2 +++ loncom/homework/outputtags.pm 2001/01/11 16:33:44 1.3 @@ -13,7 +13,7 @@ sub start_displayduedate { my $result; my $status=$Apache::inputtags::status['-1']; &Apache::lonxml::debug("got a $status in duedatebox"); - if ($status =~ /CAN.*_ANSWER/) { + if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { my $args =''; if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } my $format = &Apache::run::run("{$args;".'return $format}',$safeeval); @@ -36,7 +36,9 @@ sub end_displayduedate { sub start_displaytitle { my ($target,$token,$parstack,$parser,$safeeval)=@_; - return "

$Apache::lonhomework::name

"; + if ($target eq 'web') { + return "

$Apache::lonhomework::name

"; + } } sub end_displaytitle {