diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-10-01 21:55:45 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-10-01 22:07:55 -0700 |
commit | 27b4c21f727ca02228a1fae8f3cdbba74641ede8 (patch) | |
tree | 08d91d771937d71cc9541062a5c14da94a1d266e /src | |
parent | 7d97bf7a8cd37f7438b331f6799eeed6e4b74c3d (diff) | |
download | pandoc-27b4c21f727ca02228a1fae8f3cdbba74641ede8.tar.gz |
Update to lastest citeproc
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Citeproc/MetaValue.hs | 1 |
1 files changed, 1 insertions, 0 deletions
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 |