Console: Prevent bad line-wrap of very long menu items

This commit is contained in:
zzz
2015-06-02 16:41:04 +00:00
parent 272f63dbbd
commit dc9256f274

View File

@ -665,6 +665,10 @@ public class SummaryBarRenderer {
* @since 0.9.18 * @since 0.9.18
*/ */
private static String nbsp(String s) { private static String nbsp(String s) {
// if it's too long, this makes it worse
if (s.length() <= 30)
return s.replace(" ", "&nbsp;"); return s.replace(" ", "&nbsp;");
else
return s;
} }
} }