PDF Output: Accept commas in custom paper size specification

Used in some European countries.
This commit is contained in:
Kovid Goyal 2013-09-02 11:24:02 +05:30
parent 42d6ffc249
commit f6eb9b0ba5

View File

@ -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: