git.iko.soy/typeable/pandoc
on master help sign in
AsciiDoc writer: Handle multiblock table cells.

Closes #1246.

commit96c0c950cab8b42d5d6b8b1a6f1fb20f7f4a5aae authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 May 2014, 21:31 (12 years ago) parent41c89d5
1 file changed+2−1
src/Text/Pandoc/Writers/AsciiDoc.hs+2−1
src/Text/Pandoc/Writers/AsciiDoc.hs+2−1
@@ -218,7 +218,8 @@ blockToAsciiDoc opts (Table caption aligns widths headers rows) = do
218218 return $ text "|" <> chomp d
219219 makeCell [Para x] = makeCell [Plain x]
220220 makeCell [] = return $ text "|"
221− makeCell _ = return $ text "|" <> "[multiblock cell omitted]"
221+ makeCell bs = do d <- blockListToAsciiDoc opts bs
222+ return $ text "a|" $$ d
222223 let makeRow cells = hsep `fmap` mapM makeCell cells
223224 rows' <- mapM makeRow rows
224225 head' <- makeRow headers