aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-06-25 22:32:11 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-06-25 22:32:50 -0700
commit243c56a880054bc11ee2007f9ab77174fff1d40f (patch)
tree4ab572c7c46374139ccafee8d445864aa9c6a9cc /tests
parent70eeeb82b5956387e5fd4002353655e8199edf62 (diff)
downloadpandoc-243c56a880054bc11ee2007f9ab77174fff1d40f.tar.gz
Fixed 'authors' metadata parsing in reST.
Semicolons separate different authors.
Diffstat (limited to 'tests')
-rw-r--r--tests/rst-reader.native7
-rw-r--r--tests/rst-reader.rst3
2 files changed, 3 insertions, 7 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index 92c3ce2ca..49677d958 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -1,8 +1,5 @@
-Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str "Subtitle"], docAuthors = [[Str "John",Space,Str "MacFarlane"],[Str "Anonymous"]], docDate = [Str "July",Space,Str "17,",Space,Str "2006"]})
-[DefinitionList
- [([Str "Revision"],
- [[Para [Str "3"]]])]
-,Header 1 ("",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
+Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("revision",MetaBlocks [Para [Str "3"]]),("subtitle",MetaInlines [Str "Subtitle"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
+[Header 1 ("",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
,Header 2 ("",[],[]) [Str "Level",Space,Str "two",Space,Str "header"]
,Header 3 ("",[],[]) [Str "Level",Space,Str "three"]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index 970ab4d4a..748bfe0a5 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -3,8 +3,7 @@ Pandoc Test Suite
Subtitle
^^^^^^^^
-:Author: John MacFarlane
-:Author: Anonymous
+:Authors: John MacFarlane; Anonymous
:Date: July 17, 2006
:Revision: 3