From 97b9c02f69004e8f2fa13a13cddb6e5804c9623b Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 27 Jul 2003 11:14:01 +0000 Subject: [PATCH] Simplified case statement. Suggestion from Thijs. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5449 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/i18n.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/functions/i18n.php b/functions/i18n.php index 76d22910..d2415daf 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -721,20 +721,16 @@ function cleanup_nbsp($string,$charset) { // where is non-braking space symbol switch($output_charset): case "iso-8859-x": + case "cp125x": + case "iso-2022-jp": $nbsp="\xA0"; break; - case "cp125x": - $nbsp="\xA0"; - break; case "koi8-x": $nbsp="\x9A"; break; case "utf-8": $nbsp="\xC2\xA0"; break; - case "iso-2022-jp": - $nbsp="\xA0"; - break; default: // don't change string if charset is unmatched return $string; -- 2.25.1