summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-03-16 10:22:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2024-03-16 10:26:14 -0700
commitea3719818b4d70577623c9a81e31b6baa5ea9e2f (patch)
tree11e293ee87ac45c70d2f0e653d72792a82092601
parentad1e979c92de93dd4dcc399756bc5220c8dd0bd5 (diff)
Typst writer: don't add inset to tables.
This hardcoded `inset` prevented global customizations in a template. Closes #9580.
-rw-r--r--src/Text/Pandoc/Writers/Typst.hs1
-rw-r--r--test/tables.typst7
2 files changed, 0 insertions, 8 deletions
diff --git a/src/Text/Pandoc/Writers/Typst.hs b/src/Text/Pandoc/Writers/Typst.hs
index 515f0bee7..007e0881e 100644
--- a/src/Text/Pandoc/Writers/Typst.hs
+++ b/src/Text/Pandoc/Writers/Typst.hs
@@ -183,7 +183,6 @@ blockToTypst block =
$$ nest 2
( "columns: " <> text (show numcols) <> "," -- auto
$$ "align: (col, row) => " <> alignarray <> ".at(col),"
- $$ "inset: 6pt" <> ","
$$ hsep (map ((<>",") . brackets) headers')
$$ vcat (map (\x -> brackets x <> ",") (concat rows'))
)
diff --git a/test/tables.typst b/test/tables.typst
index e84b7c41c..0eaa77600 100644
--- a/test/tables.typst
+++ b/test/tables.typst
@@ -4,7 +4,6 @@ Simple table with caption:
align(center)[#table(
columns: 4,
align: (col, row) => (right,left,center,auto,).at(col),
- inset: 6pt,
[Right], [Left], [Center], [Default],
[12],
[12],
@@ -29,7 +28,6 @@ Simple table without caption:
align(center)[#table(
columns: 4,
align: (col, row) => (right,left,center,auto,).at(col),
- inset: 6pt,
[Right], [Left], [Center], [Default],
[12],
[12],
@@ -53,7 +51,6 @@ Simple table indented two spaces:
align(center)[#table(
columns: 4,
align: (col, row) => (right,left,center,auto,).at(col),
- inset: 6pt,
[Right], [Left], [Center], [Default],
[12],
[12],
@@ -78,7 +75,6 @@ Multiline table with caption:
align(center)[#table(
columns: 4,
align: (col, row) => (center,left,right,left,).at(col),
- inset: 6pt,
[Centered Header], [Left Aligned], [Right Aligned], [Default aligned],
[First],
[row],
@@ -99,7 +95,6 @@ Multiline table without caption:
align(center)[#table(
columns: 4,
align: (col, row) => (center,left,right,left,).at(col),
- inset: 6pt,
[Centered Header], [Left Aligned], [Right Aligned], [Default aligned],
[First],
[row],
@@ -119,7 +114,6 @@ Table without column headers:
align(center)[#table(
columns: 4,
align: (col, row) => (right,left,center,right,).at(col),
- inset: 6pt,
[12],
[12],
[12],
@@ -142,7 +136,6 @@ Multiline table without column headers:
align(center)[#table(
columns: 4,
align: (col, row) => (center,left,right,auto,).at(col),
- inset: 6pt,
[First],
[row],
[12.0],