Bug 139336 - FILESAVE DOCX No second page after section containing footnote
Summary: FILESAVE DOCX No second page after section containing footnote
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Attila Szűcs
URL:
Whiteboard: target:7.3.0 target:7.4.0 target:7.3....
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Section DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2020-12-31 09:58 UTC by NISZ LibreOffice Team
Modified: 2023-11-23 07:08 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
attachment #168524 saved by current Writer (5.17 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-12-31 09:58 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported document side by side in Word and Writer (76.36 KB, image/png)
2020-12-31 09:58 UTC, NISZ LibreOffice Team
Details
DEMOA-LO72.pdf: exported from Word 2010 - two pages, no divider line. (16.14 KB, application/pdf)
2021-01-09 07:12 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-12-31 09:58:03 UTC
Created attachment 168591 [details]
attachment #168524 [details] saved by current Writer

This is split off from bug #139266
The attachment there contains two pages (caused by a footnote inside a two column section), but after saving to DOCX Word 2013 displays it as a single page document.

Steps to reproduce:
    1. Open attachment #168524 [details] 
    2. Save as docx, reopen in Word 2013+

Actual results:
Document is one page in Word 2013+

Expected results:
Document should be two pages.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: c0eee433e079d8e3413f4691607e075b99af92b0
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Additional Information: 

Bibisected using bibisect-win64-7.0 to:
URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=f25985c55541cbbc9a4fc79e660592d3d0485196

author  Justin Luth <justin.luth@collabora.com> 2020-03-13 07:14:29 +0300
committer       Miklos Vajna <vmiklos@collabora.com>    2020-03-18 09:29:03 +0100

tdf#131304 .docx: flag new files as MS Word 2019 native mode

Adding CC to: Justin Luth
Comment 1 NISZ LibreOffice Team 2020-12-31 09:58:23 UTC
Created attachment 168592 [details]
Screenshot of the original and exported document side by side in Word and Writer
Comment 2 Justin L 2021-01-02 13:32:56 UTC
There really is nothing in the document that indicates a second page should exist. It happens to do so in LO because it decided to expand the column to the entire page since it includes a footnote. Take the footnote away, and the column shrinks and everything fits on one page.

I would probably consider the fact that the ODT takes up two pages to be a LO bug. And it seems like Word came to that same conclusion for 2013.
Comment 3 Justin L 2021-01-09 07:12:45 UTC
Created attachment 168782 [details]
DEMOA-LO72.pdf: exported from Word 2010 - two pages, no divider line.

Well, although I don't intend to do anything about this, I can certainly confirm that this problem exists, and allowing both possibilities depending on the compatibilityLevel would increase interoperability with MS Word.

This is primarily a layout issue I assume.

One thing to note is that LibreOffice draws the column divider all the way down the page. Word doesn't draw the divider line until some content exists in the second column - but then in Word 2010 it did draw the line down the entire page.
Comment 4 Xisco Faulí 2021-02-23 09:26:12 UTC
(In reply to Justin L from comment #3)
> Created attachment 168782 [details]
> DEMOA-LO72.pdf: exported from Word 2010 - two pages, no divider line.
> 
> Well, although I don't intend to do anything about this, I can certainly
> confirm that this problem exists, and allowing both possibilities depending
> on the compatibilityLevel would increase interoperability with MS Word.
> 
> This is primarily a layout issue I assume.
> 
> One thing to note is that LibreOffice draws the column divider all the way
> down the page. Word doesn't draw the divider line until some content exists
> in the second column - but then in Word 2010 it did draw the line down the
> entire page.

Moving to NEW
Comment 5 NISZ LibreOffice Team 2021-07-15 10:43:55 UTC
(In reply to Justin L from comment #2)
> I would probably consider the fact that the ODT takes up two pages to be a
> LO bug. And it seems like Word came to that same conclusion for 2013.

That is bug 54465 then.
Comment 6 Commit Notification 2021-11-02 15:32:10 UTC
Attila Szűcs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4c31b4ef2083087a822c3ae648fd09acc67d2f88

tdf#139336 sw: fix extra pages of multicolumn sections with footnotes

It will be available in 7.3.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.
Comment 7 NISZ LibreOffice Team 2021-11-08 13:44:11 UTC
Verified in: 

Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 73334560b2dd2d60ac58d2cc2b1a5295490b03e1
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded
Comment 8 Commit Notification 2021-11-29 08:34:55 UTC
Attila Szűcs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/41cc1d2c0c0c3bfa5ba341311f68df05375859fb

tdf#54465 tdf#139336 sw: add compat. flag for footnote in column

It will be available in 7.4.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.
Comment 9 Commit Notification 2021-11-30 09:10:13 UTC
Attila Szűcs committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/8a82c6f3f1e85c941ac05b48416450cec813a04e

tdf#54465 tdf#139336 sw: add compat. flag for footnote in column

It will be available in 7.3.0.0.beta2.

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.