From bc31d9fe28db967bf02bc165300f68b5061f8db9 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 13 Mar 2010 03:19:03 +0000 Subject: Texinfo writer: fixed headerless tables. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1880 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Writers/Texinfo.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/Texinfo.hs b/src/Text/Pandoc/Writers/Texinfo.hs index c6e1892c9..db32e5a62 100644 --- a/src/Text/Pandoc/Writers/Texinfo.hs +++ b/src/Text/Pandoc/Writers/Texinfo.hs @@ -191,7 +191,9 @@ blockToTexinfo (Header level lst) = do seccmd _ = error "illegal seccmd level" blockToTexinfo (Table caption aligns widths heads rows) = do - headers <- tableHeadToTexinfo aligns heads + headers <- if all null heads + then return empty + else tableHeadToTexinfo aligns heads captionText <- inlineListToTexinfo caption rowsText <- mapM (tableRowToTexinfo aligns) rows colDescriptors <- -- cgit v1.2.3