diff options
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/spellcheck.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php index 2dea15465..daddebe47 100644 --- a/lib/exe/spellcheck.php +++ b/lib/exe/spellcheck.php @@ -117,7 +117,8 @@ function spell_check() { $string = preg_replace("/(\015\012)|(\015)/","\012",$string); $string = htmlspecialchars($string); - // make sure multiple spaces are kept + // make sure multiple spaces and leading are kept + $string = preg_replace('/^ /m',' ',$string); $string = preg_replace('/ /',' ',$string); // we need the text as array later |