mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -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')
|
||||
if height:
|
||||
try:
|
||||
width = float(width)
|
||||
height = float(height)
|
||||
width = float(width.replace(',', '.'))
|
||||
height = float(height.replace(',', '.'))
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user