Fix compiler warnings from last commit.

This commit is contained in:
John MacFarlane 2022-04-18 15:19:21 -07:00
parent 6a041a1b75
commit 6dc692bc5f

View file

@ -56,7 +56,7 @@ import qualified Text.Pandoc.Builder as Builder
import Text.Pandoc.Definition
import Text.Pandoc.Options
import Text.DocLayout
import Text.Pandoc.Shared (stringify, makeSections, deNote, deLink, blocksToInlines)
import Text.Pandoc.Shared (stringify, makeSections, blocksToInlines)
import Text.Pandoc.Walk (walk)
import qualified Text.Pandoc.UTF8 as UTF8
import Text.Pandoc.XML (escapeStringForXML)
@ -445,7 +445,7 @@ sectionToListItem opts (Div (ident,_,_)
then id
else (Span ("",["toc-section-number"],[])
[Str num] :) . (Space :)
clean (Link _ ils _) = ils
clean (Link _ xs _) = xs
clean (Note _) = []
clean x = [x]
headerText' = addNumber $ walk (concatMap clean) ils