mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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)
|
i = float(i)
|
||||||
except Exception:
|
except Exception:
|
||||||
return str(i)
|
return str(i)
|
||||||
if int(i) == float(i):
|
if int(i) == i:
|
||||||
return roman(int(i)) if use_roman else '%d'%int(i)
|
return roman(int(i)) if use_roman else '%d'%int(i)
|
||||||
ans = fmt%i
|
ans = fmt%i
|
||||||
if '.' in ans:
|
if '.' in ans:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user