Merge pull request #1195 from daniel-beck/JENKINS-22670

[FIXED JENKINS-22670] Less aggressive word breaking
This commit is contained in:
Oliver Gondža committed 2014-04-18 19:20:55 +02:00
commit a7eb8b7eb3
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -1830,7 +1830,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>")
;
}