Muse writer: Indent tables with one space (#3649)
It is required to trigger Muse table rendering.
This commit is contained in:
parent
6b086acae8
commit
69110cde81
3 changed files with 37 additions and 37 deletions
|
@ -216,7 +216,7 @@ blockToMuse (Table caption _ _ headers rows) = do
|
|||
let hpipeBlocks sep blocks = hcat $ intersperse sep' blocks
|
||||
where h = maximum (1 : map height blocks)
|
||||
sep' = lblock (length sep) $ vcat (map text $ replicate h sep)
|
||||
let makeRow sep = hpipeBlocks sep . zipWith lblock widthsInChars
|
||||
let makeRow sep = (" " <>) . (hpipeBlocks sep . zipWith lblock widthsInChars)
|
||||
let head' = makeRow " || " headers'
|
||||
let rowSeparator = if noHeaders then " | " else " | "
|
||||
rows'' <- mapM (\row -> do cols <- mapM blockListToMuse row
|
||||
|
|
Loading…
Add table
Reference in a new issue