This is basically the same as https://bugs.libreoffice.org/show_bug.cgi?id=45784 and https://bugs.libreoffice.org/show_bug.cgi?id=60967 In a header, I've got a table element. A newline appears after the table, and I don't want it. I place my cursor on the unwanted line and press Ctrl+Shift+Del. The blank line is not removed.
I've opened styles.xml from the ODT file, and I can confirm that an extra text:p element appears after the table. If I remove that element, the blank line disappears from the LibreOffice header. Example: ```xml ...snip... <text:p text:style-name="MP5">MY HEADER TEXT</text:p> </table:table-cell></table:table-row></table:table> <text:p text:style-name="MP6"/> </style:header-first> </style:master-page> </office:master-styles></office:document-styles> ``` When I remove `<text:p text:style-name="MP6"/>`, the line is gone in LibreOffice. I've only tested this in the header, but I assume it's probably true for the footer as well.
Confirmed that this happens in the Footer as well.
*** This bug has been marked as a duplicate of bug 33631 ***