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?