]> git.lyx.org Git - features.git/commitdiff
ereg is deprecated.
authorRichard Heck <rgheck@lyx.org>
Thu, 23 May 2013 12:57:20 +0000 (08:57 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 23 May 2013 12:57:20 +0000 (08:57 -0400)
lib/generate_contributions.py

index 4a0b5a8409f2d192a20673930e30b9cdd63d5651..2240790d53c64ecc8a976a27ffeaadc022a6adbc 100755 (executable)
@@ -160,7 +160,7 @@ if (isset($email) && $email != "") {
 } else
         $output=$output. "<dt><b>${name}</b>";
 
-$msg = ereg_replace("\\n *", "\\n  ", ltrim($msg));
+$msg = preg_replace("/\\n */", "\\n  ", ltrim($msg));
 
 $output=$output. "
  </dt>