summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-01-12 13:57:16 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-01-13 07:36:45 +0000
commitddf4ff31f075e00ca4cbb623b596eabf62ab4758 (patch)
treef90e66b7e2af79922a4219f77c7a076941b1b855 /sfx2
parentc8851caa9bc3fe7965cbf4a19662d14e9f61eb42 (diff)
sw HTML export: fix invalid HTML when all cells of a row have the same rowspan
The bugdoc has a table with 2 columns and 2 rows, but both the A1 and the A2 cell has rowspan=2, so there are only covered cells in the second row. It seems there is no valid HTML markup to express this Writer doc model. What HTML seems to suggest instead is to simply decrease the amount of rowspan attribute values and then the empty <tr> elements can be simply skipped. This fixes the Row 2 of a row group established by a tbody element has no cells beginning on it. from the w3c HTML validator. Note that you can't create such problematic tables on the UI: the UI will delete the row only containing covered cells for you when the last cell gets merged. Such documents can be created by importers, though. Change-Id: Ice4fa3636e8b780d374f3d319b198aaaada9f5e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145402 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins (cherry picked from commit a2fb3a135425bbc14375e1edfcc1e09a41d760f9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145434 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
0 files changed, 0 insertions, 0 deletions