From ea3719818b4d70577623c9a81e31b6baa5ea9e2f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 16 Mar 2024 10:22:07 -0700 Subject: Typst writer: don't add inset to tables. This hardcoded `inset` prevented global customizations in a template. Closes #9580. --- src/Text/Pandoc/Writers/Typst.hs | 1 - test/tables.typst | 7 ------- 2 files changed, 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], -- cgit v1.2.3