diff options
author | Sascha Wilde <wilde@sha-bang.de> | 2017-10-31 18:55:27 +0100 |
---|---|---|
committer | Sascha Wilde <wilde@sha-bang.de> | 2017-10-31 18:55:27 +0100 |
commit | fa67d6e86ff1464874480cde84d329f02f132474 (patch) | |
tree | fd9947798bb4e5b65712d8cc7b9c89e8ea7452de /src/Text/Pandoc | |
parent | a496979c6d0eb3e6efd57264cb89d4aad1f7afdb (diff) | |
download | pandoc-fa67d6e86ff1464874480cde84d329f02f132474.tar.gz |
Creole reader: fixed lists with trailing white space.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Creole.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Creole.hs b/src/Text/Pandoc/Readers/Creole.hs index 4da259c0e..53154f5e0 100644 --- a/src/Text/Pandoc/Readers/Creole.hs +++ b/src/Text/Pandoc/Readers/Creole.hs @@ -154,7 +154,8 @@ listItem :: PandocMonad m => Char -> Int -> CRLParser m B.Blocks listItem c n = fmap (B.plain . B.trimInlines .mconcat) (listStart >> many1Till inline itemEnd) where - listStart = try $ optional newline >> skipSpaces >> count n (char c) + listStart = try $ skipSpaces >> optional newline >> skipSpaces + >> count n (char c) >> lookAhead (noneOf [c]) >> skipSpaces itemEnd = endOfParaElement <|> nextItem n <|> if n < 3 then nextItem (n+1) |