Number#humanize
and Int#humanize_bytes
should separate number and unit by a space
#14349
Labels
good first issue
This is an issue suited for newcomers to become aquianted with working on the codebase.
help wanted
This issue is generally accepted and needs someone to pick it up
status:discussion
topic:stdlib:numeric
Discussion
Number#humanize
andInt#humanize_bytes
should separate the numerical value and unit by a space, according to international standards.The kind of space should be passed as an argument.
Examples of what you may want to pass as a
space
argument (non-exhaustive):nil
- nothing, for the current behavior'\u0020'
resp.' '
– a plain space, might be the most compatible space character'\u00A0'
– a non-breaking space'\u2009'
– a thin space'\u202F'
– a thin non-breaking spaceReferences:
https://en.wikipedia.org/w/index.php?title=Space_(punctuation)&oldid=1211874527#Unit_symbols_and_numbers
https://en.wikipedia.org/w/index.php?title=ISO_31-0&oldid=1193092792#Expressions
The text was updated successfully, but these errors were encountered: