diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
commit | 98c868589ee0757f176239cf289cbd007bb74852 (patch) | |
tree | eb48a172b0f1a423b93ffff35f8adf8d579383c1 /inc/aspell.php | |
parent | 1c73890c5027011d808d38c583561abc309e8086 (diff) | |
download | rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.gz rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.bz2 |
file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see
http://wiki.splitbrain.org/wiki:development#coding_style)
It converts files to UNIX lineendings and removes tabs and trailing
whitespace. Not all files were cleaned yet.
darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
Diffstat (limited to 'inc/aspell.php')
-rw-r--r-- | inc/aspell.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/aspell.php b/inc/aspell.php index 570656795..fe1ad9dc6 100644 --- a/inc/aspell.php +++ b/inc/aspell.php @@ -74,7 +74,7 @@ class Aspell{ var $encoding = 'iso8859-1'; var $mode = PSPELL_NORMAL; var $version = 0; - + var $args=''; /** @@ -86,7 +86,7 @@ class Aspell{ $this->language = $language; $this->jargon = $jargon; $this->encoding = $encoding; - } + } /** * Set the spelling mode like pspell_config_mode() @@ -187,7 +187,7 @@ class Aspell{ $string = "^".str_replace("\n", "\n^",$text); fwrite($pipes[0],$string); // send text to Aspell fclose($pipes[0]); - + // read Aspells response from stdin while (!feof($pipes[1])) { $out .= fread($pipes[1], 8192); @@ -201,7 +201,7 @@ class Aspell{ $tmp = array(); preg_match('/^\@.*Aspell (\d+)\.(\d+).(\d+)/',$out,$tmp); $this->version = $tmp[1]*100 + $tmp[2]*10 + $tmp[3]; - + if ($this->version <= 603) // version 0.60.3 $r = $terse ? "\n*\n\$1" : "\n\$1"; // replacement for broken Aspell else |