From 104a567adc73a091566873a0bb7e6186013ceea8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Oct 2022 11:28:22 +0530 Subject: [PATCH] Fix #1991766 [Small blemishes in the book details.](https://bugs.launchpad.net/calibre/+bug/1991766) --- src/calibre/ebooks/metadata/book/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/book/base.py b/src/calibre/ebooks/metadata/book/base.py index 1efa47521b..2d14faf4ff 100644 --- a/src/calibre/ebooks/metadata/book/base.py +++ b/src/calibre/ebooks/metadata/book/base.py @@ -26,8 +26,8 @@ def human_readable(size, precision=2): """ Convert a size in bytes into megabytes """ ans = size/(1024*1024) if ans < 0.1: - return '<0.1MB' - return ('%.'+str(precision)+'f'+ 'MB') % ans + return '<0.1 MB' + return ('%.'+str(precision)+'f'+ ' MB') % ans NULL_VALUES = {