Hey Phil,
Thanks for following up!
I’m using graphql, and the results are below from the Prismic GraphiQL interface.
So you can replicate, all you need to do is make a new custom type with a Rich Text Field, that supports paragraphs (and multiple paragraphs), e.g. the default type of rich text.
Then if you follow the 3 steps below, you will see how the empty paragraph tag and line break is orphaned in the field, which is still sent to the output.
Step 1) Create new document, save and publish. Do not add any data to the fields. View in GraphiQL:
{
"data": {
"article": {
"footnote": null,
}
}
}
Step 2) Enter some content into the field, save and publish. View in GraphiQL:
{
"data": {
"article": {
"footnote": [
{
"type": "paragraph",
"text": "test",
"spans": []
}
],
}
}
}
Step 3) Deleting the content from the field (e.g. completely empty field), save and publish. View in GraphiQL:
{
"data": {
"article": {
"footnote": [
{
"type": "paragraph",
"text": "",
"spans": []
}
],
}
}
}