diff --git a/src/MathRenderer.php b/src/MathRenderer.php
index 6eeb943..13f6042 100644
--- a/src/MathRenderer.php
+++ b/src/MathRenderer.php
@@ -214,7 +214,7 @@ abstract class MathRenderer {
$mf = wfMessage( 'math_failure' )->inContentLanguage()->escaped();
$errmsg = wfMessage( $msg, $parameters )->inContentLanguage()->escaped();
$source = htmlspecialchars( str_replace( "\n", ' ', $this->tex ) );
- return "$mf ($errmsg): $source\n";
+ return "$mf ($errmsg): $source\n";
}
/**
diff --git a/tests/ParserTest.json b/tests/ParserTest.json
index fb45656..a37eaac 100644
--- a/tests/ParserTest.json
+++ b/tests/ParserTest.json
@@ -2123,7 +2123,7 @@
{
"input": " with a thumbnail- we don't render math in the parsertests by default, so math is not stripped and turns up as escaped <math> tags. [[Image:foobar.jpg|thumb|