team-formalist / formalist-rb

Flexible form builder
MIT License
22 stars 4 forks source link

Don’t render rich-text nodes that have no content #50

Open makenosound opened 7 years ago

makenosound commented 7 years ago

There are some limitation in draft at the moment that mean we’ll potentially end up with empty paragraphs in the saved data. I think the best solution for now is to simply avoid rendering any block elements that have no content, so "" or [""].