| Summary: | FILEOPEN DOCX: extra CR added every roundtrip when section has a block-table (bRemove/isDummy) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Justin L <jluth> |
| Component: | Writer | Assignee: | Justin L <jluth> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jluth |
| Priority: | medium | Keywords: | bibisectNotNeeded, filter:docx |
| Version: | Inherited From OOo | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:7.6.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 107830 | ||
| Attachments: | fdo53985.docx from ooxmlexport8 | ||
Let's update status since you assigned yourself. Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/ce0b9f3eb3f57f57a2315e099a0093c33987e6ca tdf#153602 writerfilter: clear isDummyPara after processing table. It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |
Created attachment 185360 [details] fdo53985.docx from ooxmlexport8 Each time the document is saved, an extra, empty paragraph is added at the end of the section. These sections have a block table (a table directly in the w:body, not inside of a w:p paragraph) at the start of the section, and so a dummy paragraph is created. The dummy paragraph was preventing bRemove from becoming true when reaching the end of the section containing a sectPr. Steps to reproduce: -open the file and notice there is only one empty paragraph under each table. -save as DOCX and reload. Now there are two empty paragraphs. -this increases by one on every save.