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

raeburn raeburn at source.lon-capa.org
Fri Oct 11 21:26:31 EDT 2013


raeburn		Sat Oct 12 01:26:31 2013 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - Support self-closing iframe tag.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.448 loncom/xml/londefdef.pm:1.449
--- loncom/xml/londefdef.pm:1.448	Mon Sep 30 13:44:16 2013
+++ loncom/xml/londefdef.pm	Sat Oct 12 01:26:31 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.448 2013/09/30 13:44:16 raeburn Exp $
+# $Id: londefdef.pm,v 1.449 2013/10/12 01:26:31 raeburn Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -3615,7 +3615,11 @@
                         }
                     }
                     $currentstring =~ s/\s+$//;
-                    $currentstring .= '>';
+                    if ($token->[4] =~ m{/>$}) {
+                        $currentstring .= ' />';
+                    } else {
+                        $currentstring .= '>';
+                    }
                 } else {
                     $currentstring = $token->[4];
                 }




More information about the LON-CAPA-cvs mailing list