[LON-CAPA-cvs] cvs: loncom /xml lontexconvert.pm
raeburn
raeburn at source.lon-capa.org
Sat Apr 9 10:48:13 EDT 2016
raeburn Sat Apr 9 14:48:13 2016 EDT
Modified files:
/loncom/xml lontexconvert.pm
Log:
- Eliminate warning: "Unescaped left brace in regex is deprecated" when
starting loncontrol on perl 5.22
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.118 loncom/xml/lontexconvert.pm:1.119
--- loncom/xml/lontexconvert.pm:1.118 Sat Feb 20 00:12:45 2016
+++ loncom/xml/lontexconvert.pm Sat Apr 9 14:48:13 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.118 2016/02/20 00:12:45 raeburn Exp $
+# $Id: lontexconvert.pm,v 1.119 2016/04/09 14:48:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -548,7 +548,7 @@
# $string =~s/\\fun/ /g;
# sqrt(3,4) means the 4 root of 3
- $string =~s/\\sqrt{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs;
+ $string =~s/\\sqrt\{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs;
# log(3,4) means the log base 4 of 3
$string =~s/\\log\\left\((.+?),(.+?)\\right\)/\\log_{$2}\\left($1\\right)/gs;
More information about the LON-CAPA-cvs
mailing list