mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
doc: Mark preamble variable as raw string
Importing `doc/conf.py` fails with Python 3.7: ``` >>> from conf import Mock Traceback (most recent call last): File "<stdin>", line 1, in <module> File "doc/conf.py", line 454 ''', SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 5-6: truncated \uXXXX escape ``` Therefore mark the string as raw due to the backslashes. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
This commit is contained in:
parent
b1e6080329
commit
67a3e371a6
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ latex_logo = '_static/salt-logo.png'
|
|||
latex_elements = {
|
||||
'inputenc': '', # use XeTeX instead of the inputenc LaTeX package.
|
||||
'utf8extra': '',
|
||||
'preamble': '''
|
||||
'preamble': r'''
|
||||
\usepackage{fontspec}
|
||||
\setsansfont{Linux Biolinum O}
|
||||
\setromanfont{Linux Libertine O}
|
||||
|
|
Loading…
Add table
Reference in a new issue