--- loncom/xml/lonxml.pm 2004/04/15 20:18:46 1.317 +++ loncom/xml/lonxml.pm 2004/05/21 21:07:54 1.318 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.317 2004/04/15 20:18:46 albertel Exp $ +# $Id: lonxml.pm,v 1.318 2004/05/21 21:07:54 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -524,6 +524,10 @@ sub inner_xmlparse { return $finaloutput; } +## +## Looks to see if there is a subroutine defined for this tag. If so, call it, +## otherwise do not call it as we do not know what it is. +## sub callsub { my ($sub,$target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $currentstring=''; @@ -556,6 +560,10 @@ sub callsub { $parstack,$parser,$safeeval, $style); } else { + if ($target eq 'tex') { + # throw away tag name + return ''; + } #&Apache::lonxml::debug("NOT Calling sub $sub in $space $metamode"); if ($metamode <1) { if (defined($token->[4]) && ($metamode < 1)) {