[LON-CAPA-cvs] cvs: loncom /xml style.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 21 Jan 2004 13:03:29 -0000


sakharuk		Wed Jan 21 08:03:29 2004 EDT

  Modified files:              
    /loncom/xml	style.pm 
  Log:
  Changes to work well with CBI.
  
  
Index: loncom/xml/style.pm
diff -u loncom/xml/style.pm:1.20 loncom/xml/style.pm:1.21
--- loncom/xml/style.pm:1.20	Sat Nov  8 20:14:30 2003
+++ loncom/xml/style.pm	Wed Jan 21 08:03:29 2004
@@ -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 @@
     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'};