jgm/doclayout

Rendering bug with certain inputs

Closed this issue · 0 comments

jgm commented

See jgm/pandoc#8711

ghci> render Nothing $ mconcat [Block 71 ["a","","b"]]
*** Exception: renderList encountered [Empty,CarriageReturn,Text 1 "b"]
CallStack (from HasCallStack):
  error, called at src/Text/DocLayout.hs:453:21 in doclayout-0.4-inplace:Text.DocLayout