Bug 167843 - Fileopen DOCX: Repeated row across pages
Summary: Fileopen DOCX: Repeated row across pages
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 169586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-08-07 08:08 UTC by SATYA SRINIVAS K
Modified: 2025-11-24 15:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Offer Letter for Engineering - Table error.docx (74.63 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-08-07 08:28 UTC, SATYA SRINIVAS K
Details
LO.png (762.94 KB, image/png)
2025-08-07 08:28 UTC, SATYA SRINIVAS K
Details
MSO.png (168.17 KB, image/png)
2025-08-07 08:29 UTC, SATYA SRINIVAS K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SATYA SRINIVAS K 2025-08-07 08:08:34 UTC

    
Comment 1 SATYA SRINIVAS K 2025-08-07 08:28:21 UTC
Description:
First row of a table is repeating in every page.

Steps to Reproduce:
1. View the attached sample document("Sample Offer Letter for Engineering - Table error.docx") in LibreOffice 
2. Open the same file in MS office.
3. Compare it and observe that the first row of the table in page 1 is repeated in the second page as well.
4. Check attached MSO.png and LO.png.

Actual Results:
The first row of the table is repeated across the pages.

Expected Results:
The row/content should not repeat, it should be same as in the original document.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 SATYA SRINIVAS K 2025-08-07 08:28:42 UTC
Created attachment 202222 [details]
Sample Offer Letter for Engineering - Table error.docx
Comment 3 SATYA SRINIVAS K 2025-08-07 08:28:54 UTC
Created attachment 202223 [details]
LO.png
Comment 4 SATYA SRINIVAS K 2025-08-07 08:29:06 UTC
Created attachment 202224 [details]
MSO.png
Comment 5 m_a_riosv 2025-08-07 14:59:15 UTC
Reproducible
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
AND
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Removing the option, it is not saved with the file.

*** This bug has been marked as a duplicate of bug 158324 ***
Comment 6 SATYA SRINIVAS K 2025-11-24 07:56:30 UTC
(In reply to m_a_riosv from comment #5)
> Reproducible
> Version: 25.2.5.2 (X86_64) / LibreOffice Community
> Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
> CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
> Skia/Raster; VCL: win
> Locale: es-ES (es_ES); UI: en-US
> Calc: CL threaded
> AND
> Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
> CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render:
> Skia/Raster; VCL: win
> Locale: es-ES (es_ES); UI: en-US
> Calc: CL threaded
> 
> Removing the option, it is not saved with the file.
> 
> *** This bug has been marked as a duplicate of bug 158324 ***

This issue has been marked as a duplicate of bug 158324.
However, the scenarios are different:

Bug 158324 involves a floating table where the Repeat Header property is set to true.

In this case, the issue occurs with a non-floating table where the Repeat Header property is set to false.
Comment 7 Justin L 2025-11-24 15:38:43 UTC
This started in LO 6.4 with commit f9aac900ada3d507526eeeed5b51fc7a10ab4cae
Author: László Németh on Wed Oct 2 14:57:16 2019 +0200
    tdf#81100 DOCX import: repeat header according to table style
    Reviewed-on: https://gerrit.libreoffice.org/80053
Comment 8 Justin L 2025-11-24 15:58:19 UTC
styles.xml has GreyTable1 defining firstRow with
  <w:tblHeader/>

17.4.49 tblHeader (Repeat Table Row on Every New Page)
This element specifies that the current table row shall be repeated at the top of each new page on which part of this table is displayed. This gives this table row the behavior of a 'header' row on each of these pages. This element can be applied to any number of rows at the top of the table structure in order to generate multi-row table headers.
If this element is omitted, this table row shall not be repeated on each new page on which the table is displayed. As well, if this row is not contiguously connected with the first row of the table (that is, if this table row is not either the first row, or all rows between this row and the first row are not marked as header rows) then this property shall be ignored.

In document.xml, the style is used with
  <w:tblLook w:val="0680" w:firstRow="0" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="1" w:noVBand="1"/>

So that suggests that since firstRow = 0, we don't use the first row style, and thus our table should not have a repeating header.
Comment 9 Justin L 2025-11-24 15:59:27 UTC
*** Bug 169586 has been marked as a duplicate of this bug. ***