You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With French typographic rules, prices are supposed to be printed that way:
1 000,23€
But I can't get lang.NumFmt to print a space instead of a dot... I tried lang.NumFmt 2 (.Get 0) "- , " and lang.NumFmt 2 (.Get 0) "- , " (nbsp), but both are replaced by no space at all. lang.NumFmt 2 (.Get 0) "- , " gave 1 000,23 and lang.NumFmt 2 (.Get 0) "- , \ " nothing at all.
The text was updated successfully, but these errors were encountered:
The original implementation of NumFmt did not take into account that the
options delimiter (a space) could be a valid option. Adding a delim
parameter seems like the simplest, safest, and most flexible way to
solve this oversight in a backwards-compatible way.
Fixesgohugoio#5260
The original implementation of NumFmt did not take into account that the
options delimiter (a space) could be a valid option. Adding a delim
parameter seems like the simplest, safest, and most flexible way to
solve this oversight in a backwards-compatible way.
Fixes#5260
With French typographic rules, prices are supposed to be printed that way:
1 000,23€
But I can't get
lang.NumFmt
to print a space instead of a dot... I triedlang.NumFmt 2 (.Get 0) "- , "
andlang.NumFmt 2 (.Get 0) "- , "
(nbsp), but both are replaced by no space at all.lang.NumFmt 2 (.Get 0) "- , "
gave1 000,23
andlang.NumFmt 2 (.Get 0) "- , \ "
nothing at all.The text was updated successfully, but these errors were encountered: