Changeset 571ad83


Ignore:
Timestamp:
Oct 27, 2010 2:22:53 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7efb0fa7
Parents:
983e768
Message:

use nbsp in formatSize2()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    r983e768 r571ad83  
    10771077   
    10781078    /**
    1079      * Like formatSize but with a space after the number
     1079     * Like formatSize but with a non-breaking space after the number
     1080     * Use only in HTML
    10801081     * @since 0.7.14
    10811082     */
     
    10921093        String str = fmt.format(val);
    10931094        switch (scale) {
    1094             case 1: return str + " K";
    1095             case 2: return str + " M";
    1096             case 3: return str + " G";
    1097             case 4: return str + " T";
    1098             default: return bytes + " ";
     1095            case 1: return str + "&nbsp;K";
     1096            case 2: return str + "&nbsp;M";
     1097            case 3: return str + "&nbsp;G";
     1098            case 4: return str + "&nbsp;T";
     1099            default: return bytes + "&nbsp;";
    10991100        }
    11001101    }
Note: See TracChangeset for help on using the changeset viewer.