From 27b4c21f727ca02228a1fae8f3cdbba74641ede8 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Thu, 1 Oct 2020 21:55:45 -0700 Subject: Update to lastest citeproc --- src/Text/Pandoc/Citeproc/MetaValue.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Text/Pandoc/Citeproc/MetaValue.hs b/src/Text/Pandoc/Citeproc/MetaValue.hs index 53b14f904..1b80c879a 100644 --- a/src/Text/Pandoc/Citeproc/MetaValue.hs +++ b/src/Text/Pandoc/Citeproc/MetaValue.hs @@ -97,6 +97,7 @@ dateToMetaValue date = | y < -1 -> printf "%05d-%02d" (y+1) m | otherwise -> printf "%04d-%02d" y m (y:[]) + | y == 0 -> printf "" -- used for open range | y < -1 -> printf "%05d" (y+1) | otherwise -> printf "%04d" y _ -> mempty -- cgit v1.2.3