util.format_filesize(): Use non-breaking space between value and unit

This commit is contained in:
Teemu Ikonen 2020-12-22 20:55:35 +02:00
parent f282ef7a09
commit d1683d2203
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ def format_filesize(bytesize, use_si_units=False, digits=2):
used_value = bytesize / float(value)
used_unit = unit
return locale.format_string('%.' + str(digits) + 'f %s', (used_value, used_unit))
return locale.format_string('%.' + str(digits) + 'f\u00a0%s', (used_value, used_unit))
def delete_file(filename):