diff options
author | Max <max@nextcloud.com> | 2022-03-16 13:07:31 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-03-31 15:29:22 +0300 |
commit | df1deb6c36b42e4dee065742e5791afe95f04f5d (patch) | |
tree | 7c452cc94d3ca955c7114f72db330ac111ff0b12 /src/tests | |
parent | 230dba77c564cdafb5c0a32c4b5c000d605ef1c3 (diff) |
fix: preserve td and th attributes
Prosemirror expects colspan, rowspan and the like to calculate the table layout.
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/fixtures/tables/basic.out.html | 8 | ||||
-rw-r--r-- | src/tests/fixtures/tables/handbook.out.html | 40 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/tests/fixtures/tables/basic.out.html b/src/tests/fixtures/tables/basic.out.html index c0b517180..d92b28d0f 100644 --- a/src/tests/fixtures/tables/basic.out.html +++ b/src/tests/fixtures/tables/basic.out.html @@ -1,10 +1,10 @@ <table> <tr> -<th>heading</th> -<th>other heading</th> +<th colspan="1" rowspan="1">heading</th> +<th colspan="1" rowspan="1">other heading</th> </tr> <tr> -<td>cell</td> -<td>other cell</td> +<td colspan="1" rowspan="1">cell</td> +<td colspan="1" rowspan="1">other cell</td> </tr> </table> diff --git a/src/tests/fixtures/tables/handbook.out.html b/src/tests/fixtures/tables/handbook.out.html index 4d8afad4f..32a29d132 100644 --- a/src/tests/fixtures/tables/handbook.out.html +++ b/src/tests/fixtures/tables/handbook.out.html @@ -1,30 +1,30 @@ <table> <tr> -<th><strong>Heading 0</strong></th> -<th><strong>Heading 1</strong></th> -<th><strong>Heading 2</strong></th> -<th><strong>Heading 3</strong></th> -<th><strong>Heading 4</strong></th> +<th colspan="1" rowspan="1"><strong>Heading 0</strong></th> +<th colspan="1" rowspan="1"><strong>Heading 1</strong></th> +<th colspan="1" rowspan="1"><strong>Heading 2</strong></th> +<th colspan="1" rowspan="1"><strong>Heading 3</strong></th> +<th colspan="1" rowspan="1"><strong>Heading 4</strong></th> </tr> <tr> -<td><strong>Letter</strong></td> -<td>a</td> -<td>b</td> -<td>c</td> -<td>d</td> +<td colspan="1" rowspan="1"><strong>Letter</strong></td> +<td colspan="1" rowspan="1">a</td> +<td colspan="1" rowspan="1">b</td> +<td colspan="1" rowspan="1">c</td> +<td colspan="1" rowspan="1">d</td> </tr> <tr> -<td><strong>Number</strong></td> -<td>1</td> -<td>2</td> -<td>3</td> -<td>4</td> +<td colspan="1" rowspan="1"><strong>Number</strong></td> +<td colspan="1" rowspan="1">1</td> +<td colspan="1" rowspan="1">2</td> +<td colspan="1" rowspan="1">3</td> +<td colspan="1" rowspan="1">4</td> </tr> <tr> -<td><strong>Square</strong></td> -<td>1</td> -<td>4</td> -<td>9</td> -<td>16</td> +<td colspan="1" rowspan="1"><strong>Square</strong></td> +<td colspan="1" rowspan="1">1</td> +<td colspan="1" rowspan="1">4</td> +<td colspan="1" rowspan="1">9</td> +<td colspan="1" rowspan="1">16</td> </tr> </table> |