From 0d35318916bc5b232dfc3532db0efb26f0af7f22 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 31 Jul 2006 21:28:07 +0200 Subject: spellchecker CSS changes #539 #824 This patch now assigns the needed proprietary CSS attributes for the spellchecker through JavaScript. This makes the CSS valid again (at least it appears to be ;-)) I also fixed a problem with leading single spaces in IE darcs-hash:20060731192807-7ad00-b82bdcae9a0c8cf063c3a1e985dbfd1dfdee7b06.gz --- lib/exe/spellcheck.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/exe') 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 -- cgit v1.2.3