aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-04-11 09:51:03 -0700
committerJohn MacFarlane <[email protected]>2025-05-14 13:11:37 -0700
commit4ec69b2679b24ce426626a51b22e18b054f86ea6 (patch)
tree08cc6e9c95accc3bf23ae50ea6ff4cfab0cdf7c8 /test
parentbe9fbb3f6731dc6223816677aab6c64243511c8f (diff)
T.P.Writers.Shared: New version of `gridTable`.issue6344
This handles row and colspans. Partially addresses #6344. It also ensures that cells won't wrap text in places where it wouldn't normally wrap, even if this means making the cells wider than requested by the colspec. (Closes #9001. Closes 7641.) Parameters are different, so this is a breaking [API change]. Markdown, RST, and Muse writers have been adjusted to use the new `gridTable`.
Diffstat (limited to 'test')
-rw-r--r--test/command/2834.md14
-rw-r--r--test/command/3516.md2
-rw-r--r--test/command/5128.md32
-rw-r--r--test/command/5899.md18
-rw-r--r--test/tables.muse6
5 files changed, 40 insertions, 32 deletions
diff --git a/test/command/2834.md b/test/command/2834.md
index 850c39254..32c6d3591 100644
--- a/test/command/2834.md
+++ b/test/command/2834.md
@@ -19,11 +19,11 @@ Nested grid tables.
</tr>
</table>
^D
-+-----------------------------------------------------------------------+
-| +------------------------------------------------------------------+ |
-| | ----------- | |
-| | some text | |
-| | ----------- | |
-| +------------------------------------------------------------------+ |
-+-----------------------------------------------------------------------+
++---------------------------------------------------------------------------+
+| +-----------------------------------------------------------------------+ |
+| | ----------- | |
+| | some text | |
+| | ----------- | |
+| +-----------------------------------------------------------------------+ |
++---------------------------------------------------------------------------+
```
diff --git a/test/command/3516.md b/test/command/3516.md
index 615befb3e..116268e34 100644
--- a/test/command/3516.md
+++ b/test/command/3516.md
@@ -91,6 +91,8 @@ on Windows builds.
[])]
^D
+---+---+
+| | |
++===+===+
| 1 | 2 |
+---+---+
| | |
diff --git a/test/command/5128.md b/test/command/5128.md
index 261cea507..ea628494b 100644
--- a/test/command/5128.md
+++ b/test/command/5128.md
@@ -7,20 +7,20 @@
| =^= | Centered , the same amount of characters is added to the left and the right. |
| === | Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "=>=". This option is only available for numbers (default for numbers). |
^D
-+--------+------------------------------------------------------------------+
-| Option | Meaning |
-+========+==================================================================+
-| ``<`` | Left alignment, additional characters are added to the right |
-| | (default for string). |
-+--------+------------------------------------------------------------------+
-| ``>`` | Right alignment, additional characters are added to the left. |
-+--------+------------------------------------------------------------------+
-| ``^`` | Centered , the same amount of characters is added to the left |
-| | and the right. |
-+--------+------------------------------------------------------------------+
-| ``=`` | Padding. If a numeric value is printed with a sign, then |
-| | additional characters are added after the sign. Otherwise it |
-| | behaves like "``>``". This option is only available for numbers |
-| | (default for numbers). |
-+--------+------------------------------------------------------------------+
++--------+-------------------------------------------------------------------+
+| Option | Meaning |
++========+===================================================================+
+| ``<`` | Left alignment, additional characters are added to the right |
+| | (default for string). |
++--------+-------------------------------------------------------------------+
+| ``>`` | Right alignment, additional characters are added to the left. |
++--------+-------------------------------------------------------------------+
+| ``^`` | Centered , the same amount of characters is added to the left and |
+| | the right. |
++--------+-------------------------------------------------------------------+
+| ``=`` | Padding. If a numeric value is printed with a sign, then |
+| | additional characters are added after the sign. Otherwise it |
+| | behaves like "``>``". This option is only available for numbers |
+| | (default for numbers). |
++--------+-------------------------------------------------------------------+
```
diff --git a/test/command/5899.md b/test/command/5899.md
index 7e641e7de..2382a9c02 100644
--- a/test/command/5899.md
+++ b/test/command/5899.md
@@ -37,15 +37,15 @@
^D
- A list of stuff with a table inside
- +-------+----------------------------------------------------+-------+
- | First | Second | Third |
- +=======+====================================================+=======+
- | First | The big long table cell. The big long table cell. | Third |
- | | The big long table cell. The big long table cell. | |
- | | The big long table cell. The big long table cell. | |
- | | The big long table cell. The big long table cell. | |
- | | The big long table cell. The big long table cell. | |
- +-------+----------------------------------------------------+-------+
+ +-------+------------------------------------------------------+-------+
+ | First | Second | Third |
+ +=======+======================================================+=======+
+ | First | The big long table cell. The big long table cell. | Third |
+ | | The big long table cell. The big long table cell. | |
+ | | The big long table cell. The big long table cell. | |
+ | | The big long table cell. The big long table cell. | |
+ | | The big long table cell. The big long table cell. | |
+ +-------+------------------------------------------------------+-------+
- Another list item
```
diff --git a/test/tables.muse b/test/tables.muse
index 6b3af561d..3ff8884a5 100644
--- a/test/tables.muse
+++ b/test/tables.muse
@@ -24,6 +24,9 @@ Simple table indented two spaces:
Multiline table with caption:
+-----------+----------+------------+---------------------------+
+| Centered | Left | Right | Default aligned |
+| Header | Aligned | Aligned | |
++-----------+----------+------------+---------------------------+
| First | row | 12.0 | Example of a row that |
| | | | spans multiple lines. |
+-----------+----------+------------+---------------------------+
@@ -34,6 +37,9 @@ Multiline table with caption:
Multiline table without caption:
+-----------+----------+------------+---------------------------+
+| Centered | Left | Right | Default aligned |
+| Header | Aligned | Aligned | |
++-----------+----------+------------+---------------------------+
| First | row | 12.0 | Example of a row that |
| | | | spans multiple lines. |
+-----------+----------+------------+---------------------------+