(svn r26733) -Fix [FS#6086]: inconsistency in using spaces between number and unit in some strings

Try to follow the SI recommendation to use a non-breaking space between a number and its units (and prefix)
This commit is contained in:
rubidium
2014-08-15 20:14:48 +00:00
parent 554eec1129
commit 213b0613c7
2 changed files with 50 additions and 50 deletions

View File

@@ -399,7 +399,7 @@ static char *FormatBytes(char *buff, int64 number, const char *last)
}
assert(id < lengthof(iec_prefixes));
buff += seprintf(buff, last, " %sB", iec_prefixes[id]);
buff += seprintf(buff, last, NBSP "%sB", iec_prefixes[id]);
return buff;
}
@@ -468,10 +468,10 @@ static char *FormatGenericCurrency(char *buff, const CurrencySpec *spec, Money n
* and 1 000 M is inconsistent, so always use 1 000 M. */
if (number >= 1000000000 - 500) {
number = (number + 500000) / 1000000;
multiplier = "M";
multiplier = NBSP "M";
} else if (number >= 1000000) {
number = (number + 500) / 1000;
multiplier = "k";
multiplier = NBSP "k";
}
}