Skip to content

Commit 00d9412

Browse files
committed
BUG: Make the documentation config file latex_preamble be a literal
Make the documentation config file `latex_preamble` be a literal string: add the `r` prefix. Fixes: ``` File "/home/runner/work/tract_querier/tract_querier/doc/conf.py", line 229 """ ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1-2: truncated \uXXXX escape ``` raised for example at: https://github.com/demianw/tract_querier/actions/runs/12170692299/job/33946161700#step:4:15
1 parent c444f69 commit 00d9412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
#latex_use_parts = False
224224

225225
# Additional stuff for the LaTeX preamble.
226-
latex_preamble = """
226+
latex_preamble = r"""
227227
\usepackage{amsmath}\usepackage{amsfonts}\usepackage{bm}\usepackage{morefloats}
228228
\usepackage{enumitem} \setlistdepth{10} \renewcommand{\Re}{\ensuremath{\mathbb R}}
229229
"""

0 commit comments

Comments
 (0)