Markdown writer: fix small error in ed73bd28

A `do` notation was left in a non-monadic function.
This commit is contained in:
Jesse Rosenthal 2019-05-21 12:35:41 -04:00
parent ed73bd28e5
commit 932093d1ad

View file

@ -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