https://bugs.documentfoundation.org/show_bug.cgi?id=168166

            Bug ID: 168166
           Summary: Wrong merged cells when copying a table from HTML that
                    includes colspan/rowspan
           Product: LibreOffice
           Version: 25.2.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When pasting an HTML table that looks like this:

+--------------+----------+----------+-----------------+----------+----------+
|A             |B         |C         |D                |E         |F         |
|              |          |          |                 |          |          |
|              |          |          |                 |          |          |
|              |          |          |                 |          |          |
+--------------+----------+----------+-----------------+----------+----------+
|1             |tak       |tak       |nie              |tak       |nie       |
|              |          |          |                 |          |          |
|              |          |          +-----------------+----------+----------+
|              |          |          |tak              |nie                  |
+--------------+----------+----------+-----------------+----------+----------+
|2             |tak       |nie       |nie              |tak       |tak       |
|              |          |          |                 |          |          |
|              |          |          |                 |          |          |
|              |          |          +-----------------+----------+----------+
|              |          |          |tak              |tak       |tak       |
|              |          +----------+-----------------+----------+----------+
|              |          |tak       |nie              |tak       |nie       |
|              |          |          +-----------------+----------+----------+
|              |          |          |tak              |nie                  |
+--------------+----------+----------+-----------------+----------+----------+
|3             |tak       |nie       |nie              |tak       |nie       |
|              |          |          |                 |          |          |
|              |          |          |                 |          |          |
|              |          |          +-----------------+          |          |
|              |          |          |tak              |          |          |
|              |          +----------+-----------------+          |          |
|              |          |tak       |nie              |          |          |
|              |          |          +-----------------+          |          |
|              |          |          |tak              |          |          |
+--------------+----------+----------+-----------------+----------+----------+
|4             |tak       |nie       |nie              |tak       |nie       |
|              |          |          |                 |          |          |
|              |          |          |                 |          |          |
|              |          |          +-----------------+----------+----------+
|              |          |          |tak              |tak       |nie       |
|              +----------+          +-----------------+----------+----------+
|              |nie       |          |nie              |tak       |nie       |
|              |          |          +-----------------+----------+----------+
|              |          |          |                 |tak       |nie       |
|              |          |          |tak              |          |          |
+--------------+----------+----------+-----------------+----------+----------+


to Calc, it doesn't properly merge the cells and the table is misaligned.

Attached is an example HTML file and the ods file that resulted from pasting
that html table to Calc.

Steps to Reproduce:
1. Open an html table that contains rowspan an colspan in a browser
2. Select the entire table
3. Copy the table
4. Open Calc
5. Paste the table

Actual Results:
The pasted table is misaligned - some cells are merged, but overall it doesn't
reflect the original table's structure

Expected Results:
The table in calc should have the same structure as the one in HTML


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 16; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
25.2.5-2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to