From 3a494392028daff84fecb6dddc2fd9535faf91b2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Aug 2016 23:15:33 +0200 Subject: Fix for unquoted attribute values in mediawiki tables. Previously an unquoted attribute value in a table row could cause parsing problems. Fixes #3053 (well, proper rowspans and colspans aren't created, but that's a bigger limitation with the current Pandoc document model for tables). --- src/Text/Pandoc/Readers/MediaWiki.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index d3cee08e2..4e4bc3fb0 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -253,7 +253,7 @@ parseAttr = try $ do k <- many1 letter char '=' v <- (char '"' >> many1Till (satisfy (/='\n')) (char '"')) - <|> many1 nonspaceChar + <|> many1 (satisfy $ \c -> not (isSpace c) && c /= '|') return (k,v) tableStart :: MWParser () -- cgit v1.2.3