Fix warning.

This commit is contained in:
John MacFarlane
2024-06-04 17:16:38 -07:00
parent 0698eb4a8b
commit 3d6a4d870a
+3 -3
View File
@@ -549,9 +549,9 @@ listItemToOpenXML opts numid bs = do
-- list. Otherwise the outer bullet will disappear.
let bs' = case bs of
[] -> []
first:rest -> if isListBlock first
then Plain [Str ""]:first:rest
else first:rest
x:xs -> if isListBlock x
then Plain [Str ""]:x:xs
else x:xs
modify $ \st -> st{ stNumIdUsed = False }
contents <- withNumId numid $ blocksToOpenXML opts bs'
modify $ \st -> st{ stInList = oldInList }