[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom /homework/cleanxml xml_to_loncapa.pm
From: damieng <damieng () source ! lon-capa ! org>
Date: 2015-12-23 20:33:10
Message-ID: cvsdamieng1450902790 () cvsserver
[Download RAW message or body]
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);
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic