I recently upgraded to Sphinx v5.3.0, and it looks like something has
changed in the latexpdf generation. I have an rst file with the following C
code snippet:
:code:`"%zu\n"`
Previously, this worked fine in producing latex output. However, with
v5.3.0, I get the following error on "make latexpdf":
! Text line contains an invalid character.
l.14023 \sphinxcode{\sphinxupquote{"\%zu^^@
n"}} is a suitable format %
So, the \n in the code block was converted into "^@n" in the .tex file,
which throws an error with latex. What is the proper way to put in the "\n"
in a code block and have it work with latex?
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/1b99bbca-9722-49a1-831c-d7c92fea11ccn%40googlegroups.com.