Skip to content
Snippets Groups Projects
Commit a4845b77 authored by Tim Hunt's avatar Tim Hunt
Browse files

Coding style clean-up.

parent 27f14dcc
No related branches found
No related tags found
No related merge requests found
......@@ -411,21 +411,18 @@ class stack_utils {
/**
* Replaces @blah@ with $@blah@$ if the castext is not otherwise enclosed by $'s.
*
*
* @access public
* @param string
* @return string
*/
public static function wrap_around($string) {
$string = preg_replace('/\\\\\$/', 'escapeddollar', $string);
$string = self::wrap($string);
$string = preg_replace('/escapeddollar/', '\\\\$', $string);
return $string;
return self::wrap($string);
}
/**
* Ensures that all elements within this text that need to be in math mode, are so.
* Specifically, CAS elements and inline input macros.
* @param string
* @return string
*/
public static function delimit($text) {
return preg_replace_callback('/@([^@]*)@/', array('stack_utils', 'delimit_callback'), $text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment