Skip to content

Commit

Permalink
A fix to prevent breaking of lines in multibyte languages
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 7, 2004
1 parent 4f8442c commit ea944ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/weblib.php
Expand Up @@ -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;
Expand Down

0 comments on commit ea944ef

Please sign in to comment.