From 5b07d9903869ae415b67b742baaa4612e1b98799 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 7 Jul 2004 17:45:42 +0000 Subject: [PATCH] Merged in fix for wrapping of multibyte languages --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5