LRF Output: Fix conversion of lengths expressed in centimetres or millimetres. Fixes #3822 (HTML to LRF - indenting problem)

This commit is contained in:
Kovid Goyal 2009-10-20 17:54:43 -06:00
parent ed17c42def
commit 86a2034279

View File

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