Skip to content

Commit

Permalink
Use non-breaking space in ru_RU example.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 10, 2014
1 parent ba170a5 commit 45502ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/locale/ru-RU.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "locale";

d3.locale.ru_RU = d3.locale({
decimal: ",",
thousands: " ",
thousands: "\xa0",
grouping: [3, 3],
currency: ["", " руб."],
dateTime: "%A, %e %B %Y г. %X",
Expand Down
4 changes: 2 additions & 2 deletions test/locale/locale-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ suite.addBatch({
},
"formats numbers": function(format) {
var f = format(",.2f");
assert.equal(f(12345.67), "12 345,67");
assert.equal(f(12345.67), "12 345,67");
},
"formats currencies": function(format) {
var f = format("$,.2f");
assert.equal(f(12345.67), "12 345,67 руб.");
assert.equal(f(12345.67), "12 345,67 руб.");
}
},

Expand Down

0 comments on commit 45502ac

Please sign in to comment.