mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:03:26 +02:00
PDF Output: Accept commas in custom paper size specification
Used in some European countries.
This commit is contained in:
parent
42d6ffc249
commit
f6eb9b0ba5
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue