Replace   with thin non-breaking space   for byte sizes

The latter has more consistent/predictable width between fonts & point sizes.
This commit is contained in:
str4d
2017-03-06 03:46:56 +00:00
parent 10a021f5fc
commit d7e5aaf919
2 changed files with 18 additions and 14 deletions

View File

@@ -1560,17 +1560,19 @@ public class DataHelper {
DecimalFormat fmt = new DecimalFormat("##0.00");
// Replace   with thin non-breaking space   (more consistent/predictable width between fonts & point sizes)
String str = fmt.format(val);
switch (scale) {
case 1: return str + " K";
case 2: return str + " M";
case 3: return str + " G";
case 4: return str + " T";
case 5: return str + " P";
case 6: return str + " E";
case 7: return str + " Z";
case 8: return str + " Y";
default: return bytes + " ";
case 1: return str + " K";
case 2: return str + " M";
case 3: return str + " G";
case 4: return str + " T";
case 5: return str + " P";
case 6: return str + " E";
case 7: return str + " Z";
case 8: return str + " Y";
default: return bytes + " ";
}
}