--- loncom/xml/lonxml.pm 2001/03/26 15:42:05 1.61 +++ loncom/xml/lonxml.pm 2001/03/26 17:32:14 1.62 @@ -249,17 +249,19 @@ sub callsub { $safeeval,$style); } if (my $space=$Apache::lonxml::alltags{$token->[1]}) { - #&Apache::lonxml::debug("Calling sub $sub in $space
\n"); + &Apache::lonxml::debug("Calling sub $sub in $space $metamode
\n"); $sub1="$space\:\:$sub"; $Apache::lonxml::curdepth=join('_',@Apache::lonxml::depthcounter); $currentstring .= &$sub1($target,$token,$parstack,$parser, $safeeval,$style); } else { - #&Apache::lonxml::debug("NOT Calling sub $sub in $space
\n"); - if (defined($token->[4]) && ($metamode < '1')) { - $currentstring .= $token->[4]; - } else { - $currentstring .= $token->[2]; + &Apache::lonxml::debug("NOT Calling sub $sub in $space $metamode
\n"); + if ($metamode <1) { + if (defined($token->[4]) && ($metamode < 1)) { + $currentstring .= $token->[4]; + } else { + $currentstring .= $token->[2]; + } } } if ($target eq 'edit' && $token->[0] eq 'E') {