From 77f8c87aa15ac5e70c795865000e04ed6a1c0790 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 26 Feb 2024 12:36:21 -0500 Subject: [PATCH] test: test table alignment --- styles/examples/table_align.md | 4 ++++ styles/examples/table_align.style | 5 +++++ testdata/table_align.test | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 styles/examples/table_align.md create mode 100644 styles/examples/table_align.style create mode 100644 testdata/table_align.test diff --git a/styles/examples/table_align.md b/styles/examples/table_align.md new file mode 100644 index 00000000..39f5b7c1 --- /dev/null +++ b/styles/examples/table_align.md @@ -0,0 +1,4 @@ +| Label | Value | URL | +| :----- | :---: | ------: | +| First | foo | charm.sh | +| Second | bar | https://charm.sh | diff --git a/styles/examples/table_align.style b/styles/examples/table_align.style new file mode 100644 index 00000000..1b2d9b61 --- /dev/null +++ b/styles/examples/table_align.style @@ -0,0 +1,5 @@ +{ + "table": { + "margin": 4 + } +} diff --git a/testdata/table_align.test b/testdata/table_align.test new file mode 100644 index 00000000..984330f6 --- /dev/null +++ b/testdata/table_align.test @@ -0,0 +1,5 @@ + + LABEL | VALUE | URL + ---------+-------+------------------- + First | foo | charm.sh + Second | bar | https://charm.sh