Trim empty lines. Nothing but newline.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -49,7 +49,7 @@ class TinyGoogleSpell {
|
||||
|
||||
function _xmlChars($string) {
|
||||
$trans = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES);
|
||||
|
||||
|
||||
foreach ($trans as $k => $v)
|
||||
$trans[$k] = "&#".ord($k).";";
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class TinyPspellShell {
|
||||
|
||||
$data = shell_exec($this->cmd);
|
||||
@unlink($this->tmpfile);
|
||||
|
||||
|
||||
$returnData = array();
|
||||
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
$words = preg_split("/ |\n/", $check, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$result = $tinyspell->checkWords($words);
|
||||
break;
|
||||
|
||||
|
||||
case "suggest":
|
||||
$result = $tinyspell->getSuggestion($check);
|
||||
break;
|
||||
@@ -138,7 +138,7 @@
|
||||
header('Content-type: text/xml; charset=utf-8');
|
||||
$body = '<?xml version="1.0" encoding="utf-8" ?>';
|
||||
$body .= "\n";
|
||||
|
||||
|
||||
if (count($result) == 0)
|
||||
$body .= '<res id="' . $id . '" cmd="'. $cmd .'" />';
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user