docs/conf.py: fix baselineskip in code-blocks with scaled font

This commit is contained in:
Dietmar Maurer 2020-05-03 09:22:01 +02:00
parent 26d29e0ec7
commit a02e8b1e95

View File

@ -272,7 +272,11 @@ latex_elements = {
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# fix baselineskip in code-blocks with scaled font
# see: https://github.com/sphinx-doc/sphinx/issues/6733
'preamble': r'''
\fvset{formatcom=\baselineskip9pt\relax\let\strut\empty}
''',
# Latex figure (float) alignment
#