mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a condition in latex_image_length()
This commit is contained in:
parent
593f12060c
commit
e134dc6f57
@ -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 == "%":
|
||||
|
Loading…
Reference in New Issue
Block a user