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:
parent
0c21e4342c
commit
53ede0de5d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue