aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-11-05 08:16:15 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-11-05 08:16:15 -0800
commit7af45f78d12537c1bd5a2cac80bae0e18dc0961f (patch)
tree7bd3e0934a76b7e66b82bb1f319bde3f90347f2b /src/Text/Pandoc
parenta2c40c36d519b2b10554a6d4d894e513e1968256 (diff)
downloadpandoc-7af45f78d12537c1bd5a2cac80bae0e18dc0961f.tar.gz
Textile reader: Allow newlines before pipes in table.
Closes #654.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index da5d8bee8..263c863ab 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -310,7 +310,8 @@ tableCell = do
-- | A table row is made of many table cells
tableRow :: Parser [Char] ParserState [TableCell]
-tableRow = try $ ( char '|' *> (endBy1 tableCell (char '|')) <* newline)
+tableRow = try $ ( char '|' *>
+ (endBy1 tableCell (optional blankline *> char '|')) <* newline)
-- | Many table rows
tableRows :: Parser [Char] ParserState [[TableCell]]