GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — bpo-42238: Check Misc/NEWS.d/next/ for reStructuredText issues. by JulienPalard · Pull Request #23802 · python/cpython Conversation
|
| line = "\n" | ||
| else: | ||
| in_multiline_comment = False | ||
| if line.startswith(".. "): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I'm misinterpreting something here, but wouldn't this remove directives like .. describes:: or .. class:: too? Or is that intentional?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You're understanding it correctly, it removes a bit too much. But the documentation tells comments are Every explicit markup block which isn’t a valid markup construct.
an explicit markup is:
An explicit markup block begins with a line starting with .. followed by whitespace and is terminated by the next paragraph at the same level of indentation.
According to the ref, explicite markup are
used for footnotes, citations, hyperlink targets, directives, substitution definitions, and comments
in directives there's potentially a lot, as it's possible to add new directives, like versionchanged in our doc.
So we have like three choices:
I'm really not in favor of false positives: it's a burden for contributors. False negatives are OK though: if an rst error is introduced it'll still fixable later.
I'll try myself at the "do it right version" today to see if it's worth it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Was not that hard, probably worth it, I pushed it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience and explaining it to me :).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: kj <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Once again, thanks for making this :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.