diff options
author | Joseph C. Sible <josephcsible@users.noreply.github.com> | 2020-02-14 01:52:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 22:52:51 -0800 |
commit | 652ed0b82cd7095f418859356d7e5f8ada65eb49 (patch) | |
tree | be5df575ea426a839230933a7ac9b3ab7a99c05d /src/Text/Pandoc/Writers | |
parent | 29c2670da2a267094148f3edacaed5fc258bcdd1 (diff) | |
download | pandoc-652ed0b82cd7095f418859356d7e5f8ada65eb49.tar.gz |
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
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |