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 empty cuts behavior #9

Open
iglunchadze opened this issue Nov 26, 2023 · 0 comments
Open

Fix empty cuts behavior #9

iglunchadze opened this issue Nov 26, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed translation

Comments

@iglunchadze
Copy link

iglunchadze commented Nov 26, 2023

Diplodoc docs do not forbid empty cuts. But building a document with an cut which is made empty (intentionally or not, e.g. when none of conditional operators inside the cut return true) results in an error, seemingly irrelevant:

ERR Cut must be closed in /w-endcut.md

See the gist for examples of this and #10.

Empty cuts should either be allowed or result in their own error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed translation
Projects
None yet
Development

No branches or pull requests

2 participants