Markdown writer: fix small error in ed73bd28
A `do` notation was left in a non-monadic function.
This commit is contained in:
parent
ed73bd28e5
commit
932093d1ad
1 changed files with 3 additions and 4 deletions
|
@ -871,10 +871,9 @@ getKey :: Doc -> Key
|
|||
getKey = toKey . render Nothing
|
||||
|
||||
findUsableIndex :: [Doc] -> Int -> Int
|
||||
findUsableIndex lbls i = do
|
||||
if (text (show i)) `elem` lbls
|
||||
then findUsableIndex lbls (i + 1)
|
||||
else i
|
||||
findUsableIndex lbls i = if (text (show i)) `elem` lbls
|
||||
then findUsableIndex lbls (i + 1)
|
||||
else i
|
||||
|
||||
getNextIndex :: PandocMonad m => MD m Int
|
||||
getNextIndex = do
|
||||
|
|
Loading…
Reference in a new issue