diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-06-11 17:01:36 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-06-11 17:01:36 -0700 |
commit | 5bbaedac57d656d3f38a574763b2ab5451a20158 (patch) | |
tree | 2adbefdfd33556a13ca2c7e975799ce1cf51f4c8 /test | |
parent | f7c0d2fb3f9ba8ac6c20ea03a2dbe0709c0d026f (diff) | |
download | pandoc-5bbaedac57d656d3f38a574763b2ab5451a20158.tar.gz |
JATS writer: ensure validity of pub-date.
We try to parse the date and convert to year, month, day,
as expected in pub-date. We also add an iso-8601-date attribute
if possible.
Diffstat (limited to 'test')
-rw-r--r-- | test/writer.jats | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/writer.jats b/test/writer.jats index ba5736cdd..7bbf8304d 100644 --- a/test/writer.jats +++ b/test/writer.jats @@ -22,8 +22,10 @@ <string-name>Anonymous</string-name> </contrib> </contrib-group> -<pub-date pub-type="epub"> -<string-date>July 17, 2006</string-date> +<pub-date pub-type="epub" iso-8601-date="2006-07-17"> +<day>17</day> +<month>7</month> +<year>2006</year> </pub-date> </article-meta> </front> |