[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 17 Oct 2005 16:06:36 -0000
albertel Mon Oct 17 12:06:36 2005 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- randomlist was not using the correct args with the Parser
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.304 loncom/homework/structuretags.pm:1.305
--- loncom/homework/structuretags.pm:1.304 Fri Oct 7 09:56:19 2005
+++ loncom/homework/structuretags.pm Mon Oct 17 12:06:32 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.304 2005/10/07 13:56:19 albertel Exp $
+# $Id: structuretags.pm,v 1.305 2005/10/17 16:06:32 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1063,7 +1063,9 @@
if ($target eq 'answer' || $target eq 'grade' || $target eq 'web' ||
$target eq 'tex' || $target eq 'analyze') {
my $body= &Apache::lonxml::get_all_text("/randomlist",$parser);
- my $b_parser= HTML::TokeParser->new(\$body);
+ my $b_parser= HTML::LCParser->new(\$body);
+ $b_parser->xml_mode(1);
+ $b_parser->marked_sections(1);
my $b_tok;
my @randomlist;
my $list_item;