[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

droeschl droeschl at source.lon-capa.org
Mon Feb 23 05:40:02 EST 2015


droeschl		Mon Feb 23 10:40:02 2015 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Preserve backslashes in inserted templates.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.529 loncom/homework/structuretags.pm:1.530
--- loncom/homework/structuretags.pm:1.529	Sun Feb 22 15:23:57 2015
+++ loncom/homework/structuretags.pm	Mon Feb 23 10:40:01 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.529 2015/02/22 15:23:57 raeburn Exp $
+# $Id: structuretags.pm,v 1.530 2015/02/23 10:40:01 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -899,6 +899,7 @@
 sub convert_for_js {
     my $return = shift;
         $return =~ s|script|ESCAPEDSCRIPT|g;
+        $return =~ s|\\|\\\\|g;
         $return =~ s|\n|\\r\\n|g;
         $return =~ s|'|\\'|g;
 		$return =~ s|'|\\'|g;




More information about the LON-CAPA-cvs mailing list