This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7a4ada7d-2b22-4689-8e5d-c552150f23cb XWIKI-24140 Open

Tables with large cell contents using colspan and rowspan are not exported properly in Firefox when using User Browser as generator if Header and/or Footer is selected

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2b453baf-2a85-48bd-b156-23abdb67e948 Ilie Andriuta created this issue on 19/Mar/26 11:57
 
Summary: Tables with large cell contents using colspan and rowspan are not exported properly in Firefox when using User Browser as generator
Issue Type: cid:jira-generated-image-avatar-7a4ada7d-2b22-4689-8e5d-c552150f23cb Bug
Affects Versions: 17.10.4, 18.1.0
Assignee: Unassigned
Attachments: Export_PDF_FF_using_User_Browser_Footer_ticked.png, Export_PDF_FF_using_User_Browser_Header_Footer_not_selected.png
Components: Export - PDF
Created: 19/Mar/26 11:57
Environment: Windows 11 Pro, Firefox 148, using an instance of XWiki 17.10.4 on Oracle 19c, Tomcat 11
Priority: cid:jira-generated-image-static-major-ec3d05b0-8b1d-4169-aee8-ef4ca5a8b59c Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Open XWiki on Firefox (tested with Firefox 148.0.2)
  2. Create a page with the following content:
     
    |
    =Group|=Subgroup|=Item
    |(% colspan="1" rowspan="40" %)Group 1|(% colspan="1" rowspan="20" %)Subgroup 1|Item 1
    |Item 2
    |Item 3
    |Item 4
    |Item 5
    |Item 6
    |Item 7
    |Item 8
    |Item 9
    |Item 10
    |Item 11
    |Item 12
    |Item 13
    |Item 14
    |Item 15
    |Item 16
    |Item 17
    |Item 18
    |Item 19
    |Item 20
    |(% colspan="1" rowspan="20" %)Subgroup 2|Item 1
    |Item 2
    |Item 3
    |Item 4
    |Item 5
    |Item 6
    |Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.
    |Item 8
    |Item 9
    |Item 10
    |Item 11
    |Item 12
    |Item 13
    |Item 14
    |Item 15
    |Item 16
    |Item 17
    |Item 18
    |Item 19
    |Item 20
    |(% colspan="1" rowspan="40" %)Group 2|(% colspan="1" rowspan="20" %)Subgroup 1|Item 1
    |Item 2
    |Item 3
    |Item 4
    |Item 5
    |Item 6
    |Item 7
    |Item 8
    |Item 9
    |Item 10
    |Item 11
    |Item 12
    |Item 13
    |Item 14
    |Item 15
    |Item 16
    |Item 17
    |Item 18
    |Item 19
    |Item 20
    |(% colspan="1" rowspan="20" %)Subgroup 2|Item 1
    |Item 2
    |Item 3
    |Item 4
    |Item 5
    |Item 6
    |Item 7
    |Item 8
    |Item 9
    |Item 10
    |Item 11
    |Item 12
    |Item 13
    |Item 14
    |Item 15
    |Item 16
    |Item 17
    |Item 18
    |Item 19
    |Item 20
    
  1. Click More Actions > Export > PDF > Export
  2. Keep all PDF Export Options ticked
  3. Click Export
  4. Observe the exported PDF

Expected results

The cell with large content is displayed with normal width.

Actual results

The large cell is displayed very narrow.

This doesn't reproduce if Footer and/or Header are not ticked (please see the attached screenshots).

The issue was reproduced also on XWIki 18.2.0 SNAPSHOT.

I've tested on Debian 12 VM with Firefox 148.0.2 and I could reproduce the issue there as well.

Also, Nikita Petrenko tested on his Ubuntu 24.04.4 machine and could reproduce it.

 
 

2 updates

 
cid:jira-generated-image-avatar-2b453baf-2a85-48bd-b156-23abdb67e948 Changes by Ilie Andriuta on 19/Mar/26 11:58
 
Summary: Tables with large cell contents using colspan and rowspan are not exported properly in Firefox when using User Browser as generator if Header and/or Footer is selected
Description: *Steps to reproduce*
# Open XWiki on Firefox (tested with Firefox 148.0.2)
# Create a page with the following content:
 
{code:java}
|

=Group|=Subgroup|=Item
|(% colspan="1" rowspan="40" %)Group 1|(% colspan="1" rowspan="20" %)Subgroup 1|Item 1
|Item 2
|Item 3
|Item 4
|Item 5
|Item 6
|Item 7
|Item 8
|Item 9
|Item 10
|Item 11
|Item 12
|Item 13
|Item 14
|Item 15
|Item 16
|Item 17
|Item 18
|Item 19
|Item 20
|(% colspan="1" rowspan="20" %)Subgroup 2|Item 1
|Item 2
|Item 3
|Item 4
|Item 5
|Item 6
|Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.  Item 7 is really long.
|Item 8
|Item 9
|Item 10
|Item 11
|Item 12
|Item 13
|Item 14
|Item 15
|Item 16
|Item 17
|Item 18
|Item 19
|Item 20
|(% colspan="1" rowspan="40" %)Group 2|(% colspan="1" rowspan="20" %)Subgroup 1|Item 1
|Item 2
|Item 3
|Item 4
|Item 5
|Item 6
|Item 7
|Item 8
|Item 9
|Item 10
|Item 11
|Item 12
|Item 13
|Item 14
|Item 15
|Item 16
|Item 17
|Item 18
|Item 19
|Item 20
|(% colspan="1" rowspan="20" %)Subgroup 2|Item 1
|Item 2
|Item 3
|Item 4
|Item 5
|Item 6
|Item 7
|Item 8
|Item 9
|Item 10
|Item 11
|Item 12
|Item 13
|Item 14
|Item 15
|Item 16
|Item 17
|Item 18
|Item 19
|Item 20
{code}

# Click More Actions > Export > PDF > Export
# Keep all PDF Export Options ticked
# Click Export
# Observe the exported PDF

*Expected results*

The cell with large content is displayed with normal width.

*Actual results*

The large cell is displayed very narrow.

This doesn't reproduce if Footer and/or Header are not ticked (please see the attached screenshots).

The issue was reproduced also on [XWIki 18.2.0 SNAPSHOT|https://nexus-snapshots.xwiki.org/repository/snapshots/org/xwiki/platform/xwiki-platform-distribution-flavor-jetty-hsqldb/18.2.0-SNAPSHOT/xwiki-platform-distribution-flavor-jetty-hsqldb-18.2.0-20260318.214722-38.zip].

I've tested on Debian 12 VM with Firefox 148.0.2 and I could reproduce the issue there as well.

Also, [~npetrenko] tested on his Ubuntu 24.04.4 machine and could reproduce it.