Skip to content
Permalink
Browse files

Fix funding formatting

  • Loading branch information
SupSuper committed Nov 3, 2018
1 parent 309025f commit 92150fc6b846e05d03e780a22102dbb7e33a26fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Engine/Unicode.cpp
@@ -255,7 +255,7 @@ void replace(std::string &str, const std::string &find, const std::string &repla
*/
std::string formatNumber(int64_t value, const std::string &currency)
{
const char thousands_sep = TOK_NBSP;
const std::string thousands_sep = "\xC2\xA0"; // TOK_NBSP

bool negative = (value < 0);
std::ostringstream ss;
@@ -264,7 +264,7 @@ std::string formatNumber(int64_t value, const std::string &currency)
size_t spacer = s.size() - 3;
while (spacer > 0 && spacer < s.size())
{
s.insert(spacer, 1, thousands_sep);
s.insert(spacer, thousands_sep);
spacer -= 3;
}
if (!currency.empty())

0 comments on commit 92150fc

Please sign in to comment.
You can’t perform that action at this time.