[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
www
www at source.lon-capa.org
Fri Dec 9 16:21:44 EST 2011
www Fri Dec 9 21:21:44 2011 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
Fix XHTML
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.526 loncom/xml/lonxml.pm:1.527
--- loncom/xml/lonxml.pm:1.526 Tue Dec 6 16:30:19 2011
+++ loncom/xml/lonxml.pm Fri Dec 9 21:21:43 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.526 2011/12/06 16:30:19 dseaton Exp $
+# $Id: lonxml.pm,v 1.527 2011/12/09 21:21:43 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -301,7 +301,8 @@
&clean_safespace($safeeval);
if (@script_var_displays) {
- $finaloutput .= join('', at script_var_displays);
+ my $scriptoutput = join('', at script_var_displays);
+ $finaloutput=~s{(</body>\s*</html>)\s*$}{$scriptoutput$1}s;
undef(@script_var_displays);
}
&init_state();
More information about the LON-CAPA-cvs
mailing list