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

Fix rST markup in the documentation about stubs #16888

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stof
Copy link
Contributor

@stof stof commented Nov 21, 2024

No description provided.

@@ -573,7 +573,7 @@ Then notice the ``#if (PHP_VERSION_ID >= ...)`` conditions in the generated argi
return class_entry;
}
The preprocessor conditions are necessary because ``enum``s, ``readonly`` properties, and the
The preprocessor conditions are necessary because ``enum``, ``readonly`` properties, and the
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rST requires the closing markup of a literal to be followed by a word boundary. It does not support closing a literal in the middle of a word.
the current markup produces output looking like that:
image

An alternative fix could be to write enums without using a literal.

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe "enum classes" or "enumerations (enum)".

@stof
Copy link
Contributor Author

stof commented Nov 21, 2024

maybe your CI should run sphinx-lint in addition to rstfmt. I'm quite sure sphinx-lint would have reported the broken literal markup at least.

@cmb69
Copy link
Member

cmb69 commented Nov 21, 2024

Thank you for the PR!

maybe your CI should run sphinx-lint in addition to rstfmt.

That is probably a good idea. At least it should be incorporated in the makefile (see #16743).

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.

2 participants