Simplified case statement. Suggestion from Thijs.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Jul 2003 11:14:01 +0000 (11:14 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Jul 2003 11:14:01 +0000 (11:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5449 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index 76d229102c7e31a48437f5e74e9abf6cd9b080c2..d2415daf91c87c84b9d767ae9b27ea844f369d5e 100644 (file)
@@ -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;