aboutsummaryrefslogtreecommitdiff
path: root/test/docbook-reader.native
diff options
context:
space:
mode:
Diffstat (limited to 'test/docbook-reader.native')
-rw-r--r--test/docbook-reader.native353
1 files changed, 246 insertions, 107 deletions
diff --git a/test/docbook-reader.native b/test/docbook-reader.native
index 3cce889f6..5ca83cf2e 100644
--- a/test/docbook-reader.native
+++ b/test/docbook-reader.native
@@ -282,116 +282,255 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Sof
,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]
,Header 1 ("tables",[],[]) [Str "Tables"]
,Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."] [AlignRight,AlignLeft,AlignCenter,AlignLeft] [0.0,0.0,0.0,0.0]
- [[Plain [Str "Right"]]
- ,[Plain [Str "Left"]]
- ,[Plain [Str "Center"]]
- ,[Plain [Str "Default"]]]
- [[[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]]
- ,[[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]]
- ,[[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]]]
+,Table ("",[],[]) (Caption Nothing
+ [Para [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]]) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignLeft,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Right"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Left"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Center"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Default"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]]]
+ []
,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table [] [AlignRight,AlignLeft,AlignCenter,AlignLeft] [0.0,0.0,0.0,0.0]
- [[Plain [Str "Right"]]
- ,[Plain [Str "Left"]]
- ,[Plain [Str "Center"]]
- ,[Plain [Str "Default"]]]
- [[[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]]
- ,[[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]]
- ,[[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignLeft,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Right"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Left"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Center"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Default"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]]]
+ []
,Para [Str "Simple",Space,Str "table",Space,Str "indented",Space,Str "two",Space,Str "spaces:"]
-,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."] [AlignRight,AlignLeft,AlignCenter,AlignLeft] [0.0,0.0,0.0,0.0]
- [[Plain [Str "Right"]]
- ,[Plain [Str "Left"]]
- ,[Plain [Str "Center"]]
- ,[Plain [Str "Default"]]]
- [[[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]]
- ,[[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]]
- ,[[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]]]
+,Table ("",[],[]) (Caption Nothing
+ [Para [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]]) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignLeft,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Right"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Left"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Center"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Default"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]]]
+ []
,Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table [Str "Here's",Space,Str "the",Space,Str "caption.",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.2,0.2,0.3,0.3]
- [[Plain [Str "Centered",Space,Str "Header"]]
- ,[Plain [Str "Left",Space,Str "Aligned"]]
- ,[Plain [Str "Right",Space,Str "Aligned"]]
- ,[Plain [Str "Default",Space,Str "aligned"]]]
- [[[Plain [Str "First"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "12.0"]]
- ,[Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,[[Plain [Str "Second"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "5.0"]]
- ,[Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]
+,Table ("",[],[]) (Caption Nothing
+ [Para [Str "Here's",Space,Str "the",Space,Str "caption.",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."]]) [(AlignCenter,Just 0.2),(AlignLeft,Just 0.2),(AlignRight,Just 0.3),(AlignLeft,Just 0.3)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Centered",Space,Str "Header"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Left",Space,Str "Aligned"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Right",Space,Str "Aligned"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Default",Space,Str "aligned"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "First"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Second"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "5.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]
+ []
,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.1,0.2,0.3,0.4]
- [[Plain [Str "Centered",Space,Str "Header"]]
- ,[Plain [Str "Left",Space,Str "Aligned"]]
- ,[Plain [Str "Right",Space,Str "Aligned"]]
- ,[Plain [Str "Default",Space,Str "aligned"]]]
- [[[Plain [Str "First"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "12.0"]]
- ,[Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,[[Plain [Str "Second"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "5.0"]]
- ,[Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignCenter,Just 0.1),(AlignLeft,Just 0.2),(AlignRight,Just 0.3),(AlignLeft,Just 0.4)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Centered",Space,Str "Header"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Left",Space,Str "Aligned"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Right",Space,Str "Aligned"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Default",Space,Str "aligned"]]]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "First"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Second"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "5.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]
+ []
,Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table [] [AlignRight,AlignLeft,AlignCenter,AlignRight] [0.0,0.0,0.0,0.0]
- [[]
- ,[]
- ,[]
- ,[]]
- [[[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]
- ,[Plain [Str "12"]]]
- ,[[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]
- ,[Plain [Str "123"]]]
- ,[[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]
- ,[Plain [Str "1"]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignRight,Nothing)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "123"]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "1"]]]]
+ []
,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.25,0.25,0.25,0.25]
- [[]
- ,[]
- ,[]
- ,[]]
- [[[Plain [Str "First"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "12.0"]]
- ,[Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,[[Plain [Str "Second"]]
- ,[Plain [Str "row"]]
- ,[Plain [Str "5.0"]]
- ,[Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]]
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignCenter,Just 0.25),(AlignLeft,Just 0.25),(AlignRight,Just 0.25),(AlignLeft,Just 0.25)] 0
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []
+ ,Cell ("",[],[]) Nothing 1 1
+ []]]
+ [Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "First"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "12.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
+ ,Row ("",[],[])
+ [Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Second"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "row"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "5.0"]]
+ ,Cell ("",[],[]) Nothing 1 1
+ [Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]]
+ []]