diff options
| author | Jess Robinson <[email protected]> | 2012-02-29 22:51:59 +0000 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2012-04-25 13:54:17 -0700 |
| commit | 1a8cbab32ac2ab742ff2aabe7a149e33ff103ab2 (patch) | |
| tree | a09e3e81ea6a6eb9109b128fc48006d203fcd786 | |
| parent | c46f68f607d197cd4fc186c3bc875609a6194077 (diff) | |
Don't show header rows of tables if not available
| -rw-r--r-- | src/Text/Pandoc/Writers/PseudoPod.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/PseudoPod.hs b/src/Text/Pandoc/Writers/PseudoPod.hs index 291e69da6..cfc80d605 100644 --- a/src/Text/Pandoc/Writers/PseudoPod.hs +++ b/src/Text/Pandoc/Writers/PseudoPod.hs @@ -233,9 +233,11 @@ blockToPseudoPod opts (Table caption _ _ headers rows) = do let rows''' = "=row" <> blankline <> "=cell " <> rows'' let head' = makeRow headers' - let head'' = "=row" <> blankline <> "=cell " <> head' + let head'' = if all null headers + then empty + else "=headrow" <> blankline <> "=row" <> blankline <> "=cell " <> head' - return $ "=begin table " <> caption' <> blankline <> "=headrow" <> blankline <> head'' <> blankline <> "=bodyrows" <> blankline <> rows''' <> blankline <> "=end table" <> blankline + return $ "=begin table " <> caption' <> blankline <> head'' <> blankline <> "=bodyrows" <> blankline <> rows''' <> blankline <> "=end table" <> blankline -- | =over / =item * / =back blockToPseudoPod opts (BulletList items) = do |
