From 652ed0b82cd7095f418859356d7e5f8ada65eb49 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Fri, 14 Feb 2020 01:52:51 -0500 Subject: A bit more cleanup (#6141) * Remove unnecessary fmaps and only do toMilliseconds once * Share the input tuple intead of making a new one * Lift return out of if * Simplify case statements * Lift DottedNum out of the case statements * Use st instead of mbs * Use setState instead of updateState now that we have the whole state around --- src/Text/Pandoc/Writers/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 6f78242b7..0f3246775 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -611,7 +611,7 @@ adjustNumbers opts doc = (writerNumberOffset opts ++ repeat 0) (map (fromMaybe 0 . safeRead) $ T.split (=='.') num)) - fixnum (k,v) = (k,v) + fixnum x = x showSecNum = T.intercalate "." . map tshow -- | Convert Pandoc block element to HTML. -- cgit v1.2.3