mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PDF Output: Accept commas in custom paper size specification
Used in some European countries.
This commit is contained in:
parent
42d6ffc249
commit
f6eb9b0ba5
@ -41,8 +41,8 @@ def get_page_size(opts, for_comic=False): # {{{
|
|||||||
width, sep, height = opts.custom_size.partition('x')
|
width, sep, height = opts.custom_size.partition('x')
|
||||||
if height:
|
if height:
|
||||||
try:
|
try:
|
||||||
width = float(width)
|
width = float(width.replace(',', '.'))
|
||||||
height = float(height)
|
height = float(height.replace(',', '.'))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user