Bug 154372 - Unable to delete blank line after table
Summary: Unable to delete blank line after table
Status: RESOLVED DUPLICATE of bug 33631
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-24 18:47 UTC by Klaatu
Modified: 2023-03-24 23:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaatu 2023-03-24 18:47:49 UTC
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.
Comment 1 Klaatu 2023-03-24 19:05:52 UTC
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.
Comment 2 Klaatu 2023-03-24 19:35:28 UTC
Confirmed that this happens in the Footer as well.
Comment 3 m_a_riosv 2023-03-24 23:42:02 UTC

*** This bug has been marked as a duplicate of bug 33631 ***