summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-07-31 21:28:07 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-07-31 21:28:07 +0200
commit0d35318916bc5b232dfc3532db0efb26f0af7f22 (patch)
treed6dcd8aeede9b5437cdeeac10c44bcf9252cdf7b /lib/exe
parent18d694935e0cce27c377e9edf7bd8904e69c1d87 (diff)
downloadrpg-0d35318916bc5b232dfc3532db0efb26f0af7f22.tar.gz
rpg-0d35318916bc5b232dfc3532db0efb26f0af7f22.tar.bz2
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
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 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','&nbsp;',$string);
$string = preg_replace('/ /','&nbsp; ',$string);
// we need the text as array later