git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: handle spaces before <html>.

Resolves Issue #216. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1837 788f1e2b-df1e-0410-8736-df70ead52e1b

commit53ede0de5d018947706288e199c77a091e4b2e85 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 12 Feb 2010, 02:52 (17 years ago) parent0c21e43
1 file changed+1
src/Text/Pandoc/Readers/HTML.hs+1
src/Text/Pandoc/Readers/HTML.hs+1
@@ -486,6 +486,7 @@ endOfDoc = try $ do
486486parseHtml :: GenParser Char ParserState Pandoc
487487parseHtml = do
488488 sepEndBy (choice [xmlDec, definition, htmlComment]) spaces
489+ spaces
489490 skipHtmlTag "html"
490491 spaces
491492 meta <- option (Meta [] [] []) parseHead