aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-01-10 12:45:19 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-01-10 12:45:19 -0800
commit5b49c47414878c6d907435bb24b8923627af43e1 (patch)
tree9575d385ad3ab92d02cebbd078e309b3477bd315 /src/Text
parent0ee49911f65ec70bbfe81da2d2eeba5ae1d81f18 (diff)
downloadpandoc-5b49c47414878c6d907435bb24b8923627af43e1.tar.gz
Markdown reader: fixed bug in table/hrule parsing.
Top line of table must not be followed by a blank line. This bug caused slowdown on some files with hrules and tables, and pandoc tried to interpret the hrules as the tops of multiline tables.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index be6e9c700..2e2941b31 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -850,7 +850,7 @@ multilineTableHeader :: Bool -- ^ Headerless table
multilineTableHeader headless = try $ do
if headless
then return '\n'
- else tableSep
+ else tableSep >>~ notFollowedBy blankline
rawContent <- if headless
then return $ repeat ""
else many1