Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The escapeinside argument to the latex formatter breaks pycon input #1516

Closed
eric-wieser opened this issue Aug 20, 2020 · 0 comments · Fixed by #1517
Closed

The escapeinside argument to the latex formatter breaks pycon input #1516

eric-wieser opened this issue Aug 20, 2020 · 0 comments · Fixed by #1517
Milestone

Comments

@eric-wieser
Copy link
Contributor

With .\tmp.txt containing

>>> where_did_this_go = str('e_x e_y e_z')

the command

pygments -l pycon -f latex -O escapeinside=QQ .\tmp.txt

gives

\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
\PY{l+s+s1}{\PYZsq{}}\PY{l+s+s1}{e\PYZus{}x e\PYZus{}y e\PYZus{}z}\PY{l+s+s1}{\PYZsq{}}\PY{g+go}{)}
\end{Verbatim}

Q doesn't even appear anywhere in my input - so why is the output getting mangled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants