A fix to prevent breaking of lines in multibyte languages

This commit is contained in:
moodler
2004-07-07 15:04:52 +00:00
parent 4f8442c56d
commit ea944efe7f
+4
View File
@@ -197,6 +197,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;