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

PEP 20: Fix syntax highlighting and other minor syntax/formatting issues #2432

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

CAM-Gerlach
Copy link
Member

@CAM-Gerlach CAM-Gerlach commented Mar 15, 2022

As reported by @brettcannon in #2430 , PEP 20 (PEP-0020), the Zen of Python, has some quirks under the new build system, particularly strangely-displayed syntax highlighting. This is due to the assumed default of python for code blocks, when they are actually just text here. As such, this PR converts the code blocks to the explicit .. code-block syntax with language declarations, plus updates/removes a few other out of date bits of the old format in the process.

Now that PEP 676 is accepted and live, I will update PEP 12 to explain this for current and future authors, and ensure the other active core/meta-PEPs also reflect it. Following that, I'll also go through and check the other old PEPs for similar issues, and fix those I find in as low-impact manner as practical (i.e. adding a .. language line at the top), However, we may as well just fix this now with a quick PR, since PEP 20 is a pretty "hot" and enduring PEP and the issue is pretty visible.

Fix #2430

pep-0020.txt Show resolved Hide resolved
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

PEP 20 has funny syntax highlighting for a literal text block
5 participants