aboutsummaryrefslogtreecommitdiff
path: root/test/pptx
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/pptx
parent83c1ce1d77d3ef058e4e5c645a8eb0379fab780f (diff)
downloadpandoc-7254a2ae0ba40b29c04b8924f27739614229432b.tar.gz
Implement the new Table type
Diffstat (limited to 'test/pptx')
-rw-r--r--test/pptx/speaker_notes_afterseps.native56
-rw-r--r--test/pptx/tables.native112
2 files changed, 117 insertions, 51 deletions
diff --git a/test/pptx/speaker_notes_afterseps.native b/test/pptx/speaker_notes_afterseps.native
index 30910708c..1e4ac331c 100644
--- a/test/pptx/speaker_notes_afterseps.native
+++ b/test/pptx/speaker_notes_afterseps.native
@@ -1,23 +1,45 @@
[Para [Image ("",[],[]) [Str "The",Space,Str "moon"] ("lalune.jpg","fig:")]
,Div ("",["notes"],[])
[Para [Str "chicken",Space,Str "and",Space,Str "dumplings"]]
-,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax,",Space,Str "with",Space,Str "alignment"] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [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,",Space,Str "with",Space,Str "alignment"]]) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignDefault,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"]]]]
+ []
,Div ("",["notes"],[])
[Para [Str "foo",Space,Str "bar"]]
,Div ("",["columns"],[])
diff --git a/test/pptx/tables.native b/test/pptx/tables.native
index e41b7bc8d..1541e6d93 100644
--- a/test/pptx/tables.native
+++ b/test/pptx/tables.native
@@ -1,35 +1,79 @@
[Header 2 ("a-table-with-a-caption",[],[]) [Str "A",Space,Str "Table,",Space,Str "with",Space,Str "a",Space,Str "caption"]
-,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax,",Space,Str "with",Space,Str "alignment"] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [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 [] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [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,",Space,Str "with",Space,Str "alignment"]]) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignDefault,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"]]]]
+ []
+,Table ("",[],[]) (Caption Nothing
+ []) [(AlignRight,Nothing),(AlignLeft,Nothing),(AlignCenter,Nothing),(AlignDefault,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"]]]]
+ []]