aboutsummaryrefslogtreecommitdiff
path: root/test/rst-reader.native
diff options
context:
space:
mode:
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."]]]