aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorroblabla <robinlambertz+dev@gmail.com>2016-05-09 15:22:02 +0200
committerroblabla <robinlambertz+dev@gmail.com>2016-05-09 17:54:40 +0200
commitacd492c7f49e31f65ec044ce3ba66ffb80844e27 (patch)
treed63195836424d99e76c98727ff9aa872c7ceacef /src/Text/Pandoc
parent21d1a3b57cc37cc8c13eaf24faf0743259afdb9a (diff)
downloadpandoc-acd492c7f49e31f65ec044ce3ba66ffb80844e27.tar.gz
Allow spaces before '!' in MediaWiki table header
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/MediaWiki.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs
index 950497992..d3cee08e2 100644
--- a/src/Text/Pandoc/Readers/MediaWiki.hs
+++ b/src/Text/Pandoc/Readers/MediaWiki.hs
@@ -225,7 +225,7 @@ table = do
Nothing -> 1.0
caption <- option mempty tableCaption
optional rowsep
- hasheader <- option False $ True <$ (lookAhead (char '!'))
+ hasheader <- option False $ True <$ (lookAhead (skipSpaces *> char '!'))
(cellspecs',hdr) <- unzip <$> tableRow
let widths = map ((tableWidth *) . snd) cellspecs'
let restwidth = tableWidth - sum widths