Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Comments.

  • Loading branch information...
commit 8aa18dddc8e2ca55c1c7b92892d530887d40ca48 1 parent d0f5c04
martinlanghoff authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/moodlelib.php
View
6 lib/moodlelib.php
@@ -6079,9 +6079,9 @@ function shorten_text($text, $ideal=30) {
if ($char == '.' or $char == ' ') {
$truncate = $i+1;
break 2;
- } else if (ord($char) >= 0xE0) {
- $truncate = $i;
- break 2;
+ } else if (ord($char) >= 0xE0) { // Chinese/Japanese/Korean text
+ $truncate = $i; // can be truncated at any UTF-8
+ break 2; // character boundary.
}
}
$count++;
Please sign in to comment.
Something went wrong with that request. Please try again.