Empty paragraphs <p></p> and <br /> are being returned from my block template onto the page. I checked my file for gremlins, etc., to be sure there weren't any hidden characters. BTW, all of my ACF fields are just plain text and textarea (without formatting) input fields.
When using this code below with the exact indentation/spacing, I get the unwanted markup:
Empty paragraphs
<p></p>
and<br />
are being returned from my block template onto the page. I checked my file for gremlins, etc., to be sure there weren't any hidden characters. BTW, all of my ACF fields are just plain text and textarea (without formatting) input fields.When using this code below with the exact indentation/spacing, I get the unwanted markup:
The HTML returns as this:
If I minify the HTML in my template beforehand, problem solved, but it's then completely unreadable for development!