Fix a condition in latex_image_length()

This commit is contained in:
Takeshi KOMIYA 2016-06-26 11:44:11 +09:00
parent 593f12060c
commit e134dc6f57

View File

@ -1350,7 +1350,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
amount, unit = match.groups()[:2]
if figure and unit in ('', 'pt'):
res = '%sbp' % amount # convert to 'bp'
if not unit or unit == "px":
elif not unit or unit == "px":
# pixels: let LaTeX alone
return None
elif unit == "%":