From: moodler <moodler> Date: Fri, 23 May 2003 14:41:22 +0000 (+0000) Subject: Formatting fixes from Windows editor X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b39cadbfe742c46ba9718dc50aed92bd0dd1d9f8;p=moodle.git Formatting fixes from Windows editor --- diff --git a/admin/lang.php b/admin/lang.php index ec8bfe2bb1..7a616bcd0e 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -185,13 +185,13 @@ echo "<TD WIDTH=40% BGCOLOR=\"$THEME->cellheading\" VALIGN=TOP>$envalue</TD>"; $value = $string[$key]; - $value = str_replace("\r","",$value); - $value = str_replace("\n\n\n\n\n\n","\n",$value); - $value = str_replace("\n\n\n\n\n","\n",$value); - $value = str_replace("\n\n\n\n","\n",$value); - $value = str_replace("\n\n\n","\n",$value); - $value = str_replace("\n\n\n","\n",$value); - $value = str_replace("\\","",$value); // Delete all slashes + $value = str_replace("\r","",$value); // Bad character caused by Windows + $value = str_replace("\n\n\n\n\n\n","\n",$value); // Collapse runs of blank lines + $value = str_replace("\n\n\n\n\n","\n",$value); + $value = str_replace("\n\n\n\n","\n",$value); + $value = str_replace("\n\n\n","\n",$value); + $value = str_replace("\n\n\n","\n",$value); + $value = str_replace("\\","",$value); // Delete all slashes $value = str_replace("%%","%",$value); $value = htmlspecialchars($value);