Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Empty blocks #35

Closed
nilshoerrmann opened this issue Aug 6, 2019 · 3 comments
Closed

Empty blocks #35

nilshoerrmann opened this issue Aug 6, 2019 · 3 comments

Comments

@nilshoerrmann
Copy link

The editor currently stores empty blocks. I'm not sure if that is always desirable. While I understand to tension to not mess with the author's intensions, it doesn't make sense to keep empty paragraphs from a semantical point in my eyes. At least, not for closing empty paragraphs (even more if there was a placeholder for adding new blocks, see #30).

@bastianallgeier
Copy link
Member

That's something you can easily control in a custom snippet. That's why I'd close this.

@nilshoerrmann
Copy link
Author

So you think it's correct to keep empty blocks in the UI after saving? I'd expect the field to clean this up actually.

@hdodov
Copy link

hdodov commented Aug 16, 2019

Empty paragraphs are omitted in Markdown, for example, because there's no concrete rules for where paragraphs start and end. If I have 9 blank lines, do I have 9 paragraphs with 1 empty line, or 3 paragraphs with 3 empty lines?

In the editor, however, paragraphs are cleanly separated, which means that if the author left an empty one - it's his decision. It probably isn't a good decision from a markup standpoint, but that doesn't change the fact he wants it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants