HTML reader: handle spaces before <html>.

Resolves Issue #216.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1837 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2010-02-12 02:52:38 +00:00
parent 0c21e4342c
commit 53ede0de5d

View file

@ -486,6 +486,7 @@ endOfDoc = try $ do
parseHtml :: GenParser Char ParserState Pandoc
parseHtml = do
sepEndBy (choice [xmlDec, definition, htmlComment]) spaces
spaces
skipHtmlTag "html"
spaces
meta <- option (Meta [] [] []) parseHead