diff --git a/src/Text/Pandoc/Writers/Typst.hs b/src/Text/Pandoc/Writers/Typst.hs index 42ca46534..4b6d9a69e 100644 --- a/src/Text/Pandoc/Writers/Typst.hs +++ b/src/Text/Pandoc/Writers/Typst.hs @@ -443,7 +443,7 @@ inlineToTypst inline = WrapPreserve -> return cr WrapAuto -> return space WrapNone -> return space - LineBreak -> return (space <> "\\" <> cr) + LineBreak -> return (space <> "\\" <> space) Math mathType str -> do res <- convertMath TM.writeTypst mathType str case res of diff --git a/test/tables/nordics.typst b/test/tables/nordics.typst index 555c2a710..bbff1d478 100644 --- a/test/tables/nordics.typst +++ b/test/tables/nordics.typst @@ -3,9 +3,7 @@ columns: (30%, 30%, 20%, 20%), align: (center,left,left,left,), table.header(table.cell(align: center)[Name], table.cell(align: center)[Capital], table.cell(align: center)[Population - \ - (in 2018)], table.cell(align: center)[Area \ - (in km#super[2])],), + \ (in 2018)], table.cell(align: center)[Area \ (in km#super[2])],), table.hline(), [Denmark], [Copenhagen], [5,809,502], [43,094], [Finland], [Helsinki], [5,537,364], [338,145], diff --git a/test/writer.typst b/test/writer.typst index dc0d3be19..efc66219b 100644 --- a/test/writer.typst +++ b/test/writer.typst @@ -194,8 +194,7 @@ item. Here's one with a bullet. \* criminey. -There should be a hard line break \ -here. +There should be a hard line break \ here. #horizontalrule