From: moodler Date: Wed, 7 Jul 2004 17:45:42 +0000 (+0000) Subject: Merged in fix for wrapping of multibyte languages X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5b07d9903869ae415b67b742baaa4612e1b98799;p=moodle.git Merged in fix for wrapping of multibyte languages --- diff --git a/lib/weblib.php b/lib/weblib.php index d927fd5925..957077d8f5 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -203,6 +203,10 @@ function break_up_long_words($string, $maxsize=20, $cutchar=' ') { /// Given some normal text, this function will break up any /// long words to a given size, by inserting the given character + if (in_array(current_language(), array('ja', 'zh_cn', 'zh_tw', 'zh_tw_utf8'))) { // Multibyte languages + return $string; + } + $output = ''; $length = strlen($string); $wordlength = 0;