Open LorensoD opened 2 months ago
Is this happening on the frontend too, or just when you view the source HTML in the Bard editor?
Is this happening on the frontend too, or just when you view the source HTML in the Bard editor?
I'm using the Rest API. And there the rendered html in the json response is also missing whitespace.
After the V5 upgrade when I save a page with Bard fields, without making any content changes, it results in the whitespace being stripped. I get this change in the markdown/yaml content file of the page:
I'm experiencing the exact same issue. Has anyone found a solution?
Please provide a repo with this problem reproduced.
Bug description
After upgrading to Statamic 5, I’ve encountered an issue where the Bard field is stripping whitespace in certain situations. Specifically, when using bold text or hyperlinks within a paragraph, the spaces before and after the formatted text are removed, causing words to run together.
Bard field before saving:
Html source before saving:
Bard field after saving:
Html source after saving:
How to reproduce
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
I use sets in my bard field. The bard field does not Save as HTML.