[LON-CAPA-cvs] cvs: loncom /homework/cleanxml xml_to_loncapa.pm
damieng
damieng at source.lon-capa.org
Wed Dec 23 15:33:10 EST 2015
damieng Wed Dec 23 20:33:10 2015 EDT
Modified files:
/loncom/homework/cleanxml xml_to_loncapa.pm
Log:
script elements always need a close tag in LC syntax
Index: loncom/homework/cleanxml/xml_to_loncapa.pm
diff -u loncom/homework/cleanxml/xml_to_loncapa.pm:1.2 loncom/homework/cleanxml/xml_to_loncapa.pm:1.3
--- loncom/homework/cleanxml/xml_to_loncapa.pm:1.2 Fri Dec 18 22:08:51 2015
+++ loncom/homework/cleanxml/xml_to_loncapa.pm Wed Dec 23 20:33:10 2015
@@ -1,7 +1,7 @@
# The LearningOnline Network
# convert_file takes a well-formed XML file content and converts it to LON-CAPA syntax.
#
-# $Id: xml_to_loncapa.pm,v 1.2 2015/12/18 22:08:51 damieng Exp $
+# $Id: xml_to_loncapa.pm,v 1.3 2015/12/23 20:33:10 damieng Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -95,7 +95,7 @@
$s .= escape_attribute($attribute->nodeValue);
$s .= '"';
}
- if ($node->hasChildNodes()) {
+ if ($node->hasChildNodes() || $tag eq 'script') {
$s .= '>';
foreach my $child ($node->childNodes) {
$s .= node_to_string($child);
More information about the LON-CAPA-cvs
mailing list