mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
0dafe305c9
commit
e80fdf55b7
@ -250,7 +250,7 @@ def fmt_sidx(i, fmt='%.2f', use_roman=False):
|
||||
i = float(i)
|
||||
except Exception:
|
||||
return str(i)
|
||||
if int(i) == float(i):
|
||||
if int(i) == i:
|
||||
return roman(int(i)) if use_roman else '%d'%int(i)
|
||||
ans = fmt%i
|
||||
if '.' in ans:
|
||||
|
Loading…
x
Reference in New Issue
Block a user