[FIXED JENKINS-22670] Less aggressive word breaking

This commit is contained in:
Daniel Beck committed 2014-04-17 21:49:15 +02:00
1 parent dcfeaf3c2a
commit 35b0094137
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -1834,7 +1834,7 @@ public class Functions {
public static String breakableString(final String plain) {
return plain.replaceAll("([\\p{Punct}&&[^;]]+\\w)", "<wbr>$1")
.replaceAll("([^\\p{Punct}\\s-]{10})(?=[^\\p{Punct}\\s-]{3})", "$1<wbr>")
.replaceAll("([^\\p{Punct}\\s-]{20})(?=[^\\p{Punct}\\s-]{10})", "$1<wbr>")
;
}