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

reStructuredText: gracefully ignore empty code blocks #369

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

sirosen
Copy link
Contributor

@sirosen sirosen commented Sep 11, 2024

Fixes #368


I only added cases for python and pycon blocks, but I also see that there are some kinds of nested matching.
I wasn't sure if there are other cases I should consider, so I constrained the changes as a good starting point.
I'm happy to cover more cases if there are more I should check.

@adamchainz adamchainz force-pushed the ignore-empty-blocks branch from aaaa8d9 to b0bef37 Compare October 7, 2024 22:29
@adamchainz adamchainz changed the title Gracefully ignore empty code blocks reStructuredText: gracefully ignore empty code blocks Oct 7, 2024
@adamchainz adamchainz enabled auto-merge (squash) October 7, 2024 22:29
@adamchainz adamchainz merged commit 6849124 into adamchainz:main Oct 7, 2024
8 checks passed
@adamchainz
Copy link
Owner

Thank you!

@sirosen sirosen deleted the ignore-empty-blocks branch October 7, 2024 22:36
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 this pull request may close these issues.

Improve the failure mode on an empty code-block directive
2 participants