Merged in fix for wrapping of multibyte languages

This commit is contained in:
moodler 2004-07-07 17:45:42 +00:00
parent 2862b309eb
commit 5b07d99038

View file

@ -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;