aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-05-09 09:37:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-05-09 09:37:12 -0700
commitc1b19b17c4853bb0113a340c54a1726b7e31e1a8 (patch)
treed63195836424d99e76c98727ff9aa872c7ceacef /src/Text/Pandoc
parent21d1a3b57cc37cc8c13eaf24faf0743259afdb9a (diff)
parentacd492c7f49e31f65ec044ce3ba66ffb80844e27 (diff)
downloadpandoc-c1b19b17c4853bb0113a340c54a1726b7e31e1a8.tar.gz
Merge pull request #2906 from roblabla/feature-mediaWikiTableHeaderSpaces
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