could automatically populate the header and footer with a newline if they're nonempty, don't show the auto-newlines if they're there, but if you remove them render like a red Ø where they would be
...though removing the header newline in a case like that could be awkward how many people actually know how to use the delete key