Fix crash that occurs with empty headers with trailing whitespace when using TOC or header ids. Defence in depth: handle NULLs properly in toc_header and rndr_header, but also change is_atxheader logic so that a header consisting only of whitespace isn't considered a header. This should prevent the header callback from ever being called with NULL content.
Fix crash that occurs with empty headers with trailing whitespace when using TOC or header ids. Defence in depth: handle NULLs properly in toc_header and rndr_header, but also change is_atxheader logic so that a header consisting only of whitespace isn't considered a header. This should prevent the header callback from ever being called with NULL content.