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

LaTeX output "pretty prints" triple single quotes in code context #961

Closed
shimizukawa opened this issue Jan 3, 2015 · 1 comment
Closed

Comments

@shimizukawa
Copy link
Member

"Explaining that Python uses triple single quotes (''') is currently difficult with Sphinx."

Docutils LaTeX writer apparently translates that snippet to:

\texttt{'{}'{}'}

However, Sphinx translate it to:

\texttt{'''}

Which means that LaTeX now interprets two of those quotes as a single "pretty" double quote in final output. Currently, the less than ideal approach is to manually intersperse with spaces:

"Explaining that Python uses triple single quotes ('\ '\ ') is currently difficult with Sphinx."

Reference this user group discussion: https://groups.google.com/d/topic/sphinx-dev/-t_yoHLBjUU/discussion


@shimizukawa
Copy link
Member Author

From Georg Brandl on 2013-03-30 11:50:00+00:00

Closes #961: Fix LaTeX output for triple quotes in code snippets.

→ <>

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant