diplodoc-platform / diplodoc

Entrypoint to Diplodoc platform
MIT License
179 stars 6 forks source link

Fix empty cuts behavior #9

Open iglunchadze opened 11 months ago

iglunchadze commented 11 months ago

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 https://github.com/diplodoc-platform/diplodoc/issues/10.

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