Markdown writer: don't crash on Str "".
This commit is contained in:
parent
1b3431a165
commit
6437695574
1 changed files with 1 additions and 1 deletions
|
@ -931,7 +931,7 @@ avoidBadWrapsInList (s:Str cs:[])
|
|||
avoidBadWrapsInList (x:xs) = x : avoidBadWrapsInList xs
|
||||
|
||||
isOrderedListMarker :: String -> Bool
|
||||
isOrderedListMarker xs = (last xs `elem` ['.',')']) &&
|
||||
isOrderedListMarker xs = not (null xs) && (last xs `elem` ['.',')']) &&
|
||||
isRight (runParser (anyOrderedListMarker >> eof)
|
||||
defaultParserState "" xs)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue