Skip to content

Lint against hyphens at the end of lines #54

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

Closed
JelleZijlstra opened this issue Feb 25, 2023 · 1 comment · Fixed by #56
Closed

Lint against hyphens at the end of lines #54

JelleZijlstra opened this issue Feb 25, 2023 · 1 comment · Fixed by #56

Comments

@JelleZijlstra
Copy link
Contributor

PEP 520 has this text in its rst:

Additionally, this PEP requires that the default class definition
namespace be ordered (e.g. ``OrderedDict``) by default.  The long-
lived class namespace (``__dict__``) will remain a ``dict``.

This gets rendered as:

Screen Shot 2023-02-24 at 4 35 53 PM

But there should be no space after the hyphen in the output.

A regex like '[a-z]-$' would catch this with few if any false positives. Could sphinx-lint add a rule looking for this issue?

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 a pull request may close this issue.

2 participants