--- loncom/xml/style.pm 2003/11/09 01:14:30 1.20 +++ loncom/xml/style.pm 2004/01/21 13:03:29 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Style Parser Module (new version) # -# $Id: style.pm,v 1.20 2003/11/09 01:14:30 albertel Exp $ +# $Id: style.pm,v 1.21 2004/01/21 13:03:29 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,6 +52,7 @@ sub styleparser { my $current_value; my $allow=0; my $pstyle = HTML::TokeParser->new(\$content_style_string); + $pstyle->xml_mode('1'); while (my $stoken = $pstyle->get_token) { if (($stoken->[0] eq 'S') && ($stoken->[1] eq 'definetag')) { push @keys,$stoken->[2]->{'name'};