mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Some hacks to stop the addition of blank lines on Windows machines during editing in the web forms.
This commit is contained in:
parent
a3152e449d
commit
020181047d
1 changed files with 9 additions and 2 deletions
|
@ -184,7 +184,14 @@
|
|||
echo "<TD WIDTH=20% BGCOLOR=\"$THEME->cellheading\" NOWRAP VALIGN=TOP>$key</TD>";
|
||||
echo "<TD WIDTH=40% BGCOLOR=\"$THEME->cellheading\" VALIGN=TOP>$envalue</TD>";
|
||||
|
||||
$value = str_replace("\\","",$string[$key]); // Delete all slashes
|
||||
$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("%%","%",$value);
|
||||
$value = htmlspecialchars($value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue