aboutsummaryrefslogtreecommitdiff
path: root/test/rst-reader.native
diff options
context:
space:
mode:
authordespresc <christian.j.j.despres@gmail.com>2020-03-28 18:22:48 -0400
committerdespresc <christian.j.j.despres@gmail.com>2020-04-15 23:03:22 -0400
commit7254a2ae0ba40b29c04b8924f27739614229432b (patch)
tree114e3143953451e3212511e7bf2e178548d3e1bd /test/rst-reader.native
parent83c1ce1d77d3ef058e4e5c645a8eb0379fab780f (diff)
downloadpandoc-7254a2ae0ba40b29c04b8924f27739614229432b.tar.gz
Implement the new Table type
Diffstat (limited to 'test/rst-reader.native')
-rw-r--r--test/rst-reader.native194
1 files changed, 137 insertions, 57 deletions
diff --git a/test/rst-reader.native b/test/rst-reader.native
index d4322f9ae..485d566ca 100644
--- a/test/rst-reader.native
+++ b/test/rst-reader.native
@@ -244,72 +244,152 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa
,[Str "Continuation",Space,Str "line"]
,[Str "\160\160and",Space,Str "another"]]
,Header 1 ("simple-tables",[],[]) [Str "Simple",Space,Str "Tables"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
- [[Plain [Str "col",Space,Str "1"]]
- ,[Plain [Str "col",Space,Str "2"]]
- ,[Plain [Str "col",Space,Str "3"]]]
- [[[Plain [Str "r1",Space,Str "a"]]
- ,[Plain [Str "b"]]
- ,[Plain [Str "c"]]]
- ,[[Plain [Str "r2",Space,Str "d"]]
- ,[Plain [Str "e"]]
- ,[Plain [Str "f"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Nothing),(AlignDefault,Nothing),(AlignDefault,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "2"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "3"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r1",Space,Str "a"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "b"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r2",Space,Str "d"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "e"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "f"]]]]
+ []
,Para [Str "Headless"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
- [[]
- ,[]
- ,[]]
- [[[Plain [Str "r1",Space,Str "a"]]
- ,[Plain [Str "b"]]
- ,[Plain [Str "c"]]]
- ,[[Plain [Str "r2",Space,Str "d"]]
- ,[Plain [Str "e"]]
- ,[Plain [Str "f"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Nothing),(AlignDefault,Nothing),(AlignDefault,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r1",Space,Str "a"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "b"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r2",Space,Str "d"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "e"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "f"]]]]
+ []
,Header 1 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
- [[Plain [Str "col",Space,Str "1"]]
- ,[Plain [Str "col",Space,Str "2"]]
- ,[Plain [Str "col",Space,Str "3"]]]
- [[[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,[[Plain [Str "r2",Space,Str "d"]]
- ,[Plain [Str "e"]]
- ,[Plain [Str "f"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Just 0.2375),(AlignDefault,Just 0.15),(AlignDefault,Just 0.1625)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "2"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "col",Space,Str "3"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r2",Space,Str "d"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "e"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "f"]]]]
+ []
,Para [Str "Headless"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
- [[]
- ,[]
- ,[]]
- [[[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,[[Plain [Str "r2",Space,Str "d"]]
- ,[Plain [Str "e"]]
- ,[Plain [Str "f"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Just 0.2375),(AlignDefault,Just 0.15),(AlignDefault,Just 0.1625)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r2",Space,Str "d"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "e"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "f"]]]]
+ []
,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
- [[]
- ,[]
- ,[]]
- [[[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,[[Plain [Str "r2",Space,Str "d"]]
- ,[Plain [Str "e"]]
- ,[Plain [Str "f"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Just 0.2375),(AlignDefault,Just 0.15),(AlignDefault,Just 0.1625)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "r2",Space,Str "d"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "e"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "f"]]]]
+ []
,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
-,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
- [[]
- ,[]
- ,[]]
- [[[Para [Str "r1",Space,Str "a"]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignDefault,Just 0.2375),(AlignDefault,Just 0.15),(AlignDefault,Just 0.1625)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Para [Str "r1",Space,Str "a"]
,Para [Str "r1",Space,Str "bis"]]
- ,[BulletList
+ ,Cell ("",[],[]) Nothing 1 1
+ [BulletList
[[Plain [Str "b"]]
,[Plain [Str "b",Space,Str "2"]]
,[Plain [Str "b",Space,Str "2"]]]]
- ,[Plain [Str "c",SoftBreak,Str "c",Space,Str "2",SoftBreak,Str "c",Space,Str "2"]]]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "c",SoftBreak,Str "c",Space,Str "2",SoftBreak,Str "c",Space,Str "2"]]]]
+ []
,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "one",Space,Str "line."]]]
,Para [Note [Para [Str "Note",Space,Str "with",SoftBreak,Str "continuation",Space,Str "line."]]]