summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-08-15 20:14:48 +0000
committerrubidium <rubidium@openttd.org>2014-08-15 20:14:48 +0000
commit53e7138a2e7fe80a2925171550576ad7eb60715d (patch)
tree52e9ffda53b47647dbafb58dc41dac111e3f2270 /src/strings.cpp
parent03551d2b354b367f57931a658653a17c51004aed (diff)
downloadopenttd-53e7138a2e7fe80a2925171550576ad7eb60715d.tar.xz
(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)
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index c12695c3a..90ead8559 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -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";
}
}