aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Citeproc/MetaValue.hs1
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