(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:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user