From bb3a75924e8c34e2573bac80e5f217eaa6f0ebb8 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 17 May 2004 00:14:42 +0000 Subject: [PATCH] alt text formatting- keep image src on one line to play nice with the parser --- includes/Math.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Math.php b/includes/Math.php index cbe2cc09be..5946061fb4 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -189,7 +189,7 @@ class MathRenderer { function _linkToMathImage() { global $wgMathPath; $url = htmlspecialchars( "$wgMathPath/{$this->hash}.png" ); - $alt = htmlspecialchars( $this->tex ); + $alt = trim(str_replace("\n", ' ', htmlspecialchars( $this->tex ))); return "\"$alt\""; } -- 2.20.1