summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/spellcheck.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php
index bdd6789d4..df4f134f4 100644
--- a/lib/exe/spellcheck.php
+++ b/lib/exe/spellcheck.php
@@ -164,7 +164,8 @@ function spell_formatword($word,$suggestions=null){
function spell_resume(){
$text = $_POST['data'];
- $text = preg_replace("/(\r\n|\n|\r)/", "", $text);
+ //some browsers insert newlines instead of spaces
+ $text = preg_replace("/(\r\n|\n|\r)/", ' ', $text);
$text = preg_replace("=<br */?>=i", "\n", $text);
// remove HTML tags