mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
LRF Output: Fix conversion of lengths expressed in centimetres or millimetres. Fixes #3822 (HTML to LRF - indenting problem)
This commit is contained in:
parent
ed17c42def
commit
86a2034279
@ -1316,9 +1316,9 @@ class HTMLConverter(object):
|
||||
elif m.group(2) == 'pc':
|
||||
result = unit * (dpi/72.) * 12
|
||||
elif m.group(2) == 'mm':
|
||||
result = unit * 0.04 * (dpi/72.)
|
||||
result = unit * 0.04 * (dpi)
|
||||
elif m.group(2) == 'cm':
|
||||
result = unit * 0.40 * (dpi/72.)
|
||||
result = unit * 0.4 * (dpi)
|
||||
if result is not None:
|
||||
if pts:
|
||||
result = int(round(result * (720./dpi)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user