Bug 119264 - import of html table with combined cells
Summary: import of html table with combined cells
Status: RESOLVED DUPLICATE of bug 74577
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2018-08-14 06:09 UTC by kavalec74
Modified: 2018-08-21 16:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test-case html file (3.75 KB, text/html)
2018-08-14 06:15 UTC, kavalec74
Details
test-case html file (3.75 KB, text/html)
2018-08-14 06:16 UTC, kavalec74
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kavalec74 2018-08-14 06:09:16 UTC
Description:
LibreOffice Calc does not support combined cells: 
<th colspan="2">xyz</th>

Steps to Reproduce:
1. Open a html documment / webside containing a talbe with combined cells, typicaly in header of the table - thead or on the first line of the table
2. Select the table with the mouse
3. Paste it to Calk spreadscheet

Actual Results:
Calc ignores combined cells

Expected Results:
The same as in the html


Reproducible: Always


User Profile Reset: No



Additional Info:
I dont know, if it is possible to attach a file, so here is a text-case in html. Copy, paste and save it as combined-cells.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
  <title>tiempos verbales</title>
  <meta http-equiv="Content-Type"
  content="application/xhtml+xml; charset=UTF-8" />
   <style type="text/css">
    body { font-family:"Arial";
     margin-top: 0px;
     }
                
     table, th, td {
     border-collapse: collapse;
     border-width: 1px;
     border-color: #000000;
     border-style: solid;
     }
     thead {
     background-color: #75AADB;
     }
     
     th, td {
     padding-left: 5px;
     padding-right: 5px;
     empty-cells: hide;
     white-space: nowrap;
     }
                 
      td[class="irregular"] {
     background-color: #C0C0C0;
     }      
  </style>
</head>
<body>

<table>
  <thead>
    <tr>
      <td></td>
      <th colspan="2">presente </th>
      <th>Imperativo </th>
      <th>Pretérito perfecto simple </th>
      
      <th colspan="2">Futuro simple </th>
      <th>Condicional simple </th>
    </tr>
    <tr>
      <td></td>
      <td>indicativo </td>
      <td>subjuntivo </td>
      <td></td>
      <td></td>
      <td>indicativo </td>
      <td>subjuntivo </td>
      <td>indicativo </td>
      <td>subjuntivo </td>
      <td></td>
    </tr>
  </thead>
    <tr>
      <td><a
        href="http://buscon.rae.es/draeI/SrvltGUIVerbos?IDVERBO=6903">haber</a>
      </td>
      <td class="irregular">he </td>
      <td class="irregular">haya </td>
      <td></td>
      <td class="irregular">hube </td>
      <td>había </td>
      <td class="irregular">hubiera </td>
      <td class="irregular">habré </td>
      <td class="irregular">hubiere </td>
      <td class="irregular">habría </td>
    </tr>
    <tr>
      <td>1 </td>
      <td class="irregular">has </td>
      <td class="irregular">hayas </td>
      <td></td>
      <td class="irregular">hubiste </td>
      <td>habías </td>
      <td class="irregular">hubieras </td>
      <td class="irregular">habrás </td>
      <td class="irregular">hubieres </td>
      <td class="irregular">habrías </td>
    </tr>
    <tr>
      <td></td>
      <td class="irregular">ha </td>
      <td class="irregular">haya </td>
      <td></td>
      <td class="irregular">hubo </td>
      <td>había </td>
      <td class="irregular">hubiera </td>
      <td class="irregular">habrá </td>
      <td class="irregular">hubiere </td>
      <td class="irregular">habría </td>
    </tr>
    <tr>
      <td></td>
      <td class="irregular">hemos </td>
      <td class="irregular">hayamos </td>
      <td></td>
      <td class="irregular">hubimos </td>
      <td>habíamos </td>
      <td class="irregular">hubiéramos </td>
      <td class="irregular">habremos </td>
      <td class="irregular">hubiéremos </td>
      <td class="irregular">habríamos </td>
    </tr>
    <tr>
      <td>habido </td>
      <td class="irregular">habéis </td>
      <td class="irregular">hayáis </td>
      <td></td>
      <td class="irregular">hubisteis</td>
      <td>habíais </td>
      <td class="irregular">hubierais </td>
      <td class="irregular">habréis </td>
      <td class="irregular">hubiereis </td>
      <td class="irregular">habríais </td>
    </tr>
    <tr>
      <td>habiendo </td>
      <td class="irregular">han </td>
      <td class="irregular">hayan </td>
      <td></td>
      <td class="irregular">hubieron </td>
      <td>habían </td>
      <td class="irregular">hubieran </td>
      <td class="irregular">habrán </td>
      <td class="irregular">hubieren </td>
      <td class="irregular">habrían </td>
    </tr>
  </table>
</body>
</html>
Comment 1 kavalec74 2018-08-14 06:15:47 UTC
Created attachment 144163 [details]
test-case html file
Comment 2 kavalec74 2018-08-14 06:16:45 UTC
Created attachment 144164 [details]
test-case html file
Comment 3 Adolfo Jayme Barrientos 2018-08-19 15:58:34 UTC
Thanks. → NEW
Comment 4 Xisco Faulí 2018-08-21 16:46:50 UTC
Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=8bed4206e1b5548e3525021d6d13025a6eb01081 which is the same commit as in bug 74577

*** This bug has been marked as a duplicate of bug 74577 ***