--- loncom/xml/lontexconvert.pm 2004/07/27 14:17:39 1.39 +++ loncom/xml/lontexconvert.pm 2005/02/09 15:45:19 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.39 2004/07/27 14:17:39 raeburn Exp $ +# $Id: lontexconvert.pm,v 1.42 2005/02/09 15:45:19 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -76,8 +76,8 @@ sub header { my $time=time; &init_tth(); return &Apache::lonxml::xmlbegin(). - &Apache::lonxml::fontsettings(). "\n\n". + &Apache::lonxml::fontsettings(). &Apache::lonmenu::registerurl(undef,'tex'). "\n\n"; } @@ -112,6 +112,7 @@ sub convert_real { $errorstring.=&tth::ttherror(); $xmlstring=~s---g; } + $xmlstring=~s/\s*\