summaryrefslogtreecommitdiff
path: root/tests/rst-reader.native
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-02-20 08:30:34 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-02-20 08:30:34 +0000
commitc6b34574bfbe0bea9fc940b680ddede1689f0de6 (patch)
treee84b634420311bdd200e0c177939554a8a8f269e /tests/rst-reader.native
parente8a753edffd37763f11a718f94c8fc3b1066830a (diff)
Incomplete support for RST tables (simple and grid).
Thanks to Eric Kow. Note TODO for future improvement in RST reader code comments. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1840 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/rst-reader.native')
-rw-r--r--tests/rst-reader.native46
1 files changed, 45 insertions, 1 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index d5b4ba77b..f3c1e5bd2 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -243,5 +243,49 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, Para [Str "A",Space,Str "third",Space,Str "paragraph"]
, Header 1 [Str "Line",Space,Str "blocks"]
, Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str " ",Str "or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str " ",Str "when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str " ",Str "due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
-, Para [Str "Continuation",Space,Str "line",LineBreak,Str " ",Str "and",Space,Str "another"] ]
+, Para [Str "Continuation",Space,Str "line",LineBreak,Str " ",Str "and",Space,Str "another"]
+, Header 1 [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"] ] ] ]
+, 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"] ] ] ]
+, Header 1 [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",Space,Str "r1",Space,Str "bis"] ]
+ , [ Plain [Str "b",Space,Str "b",Space,Str "2"] ]
+ , [ Plain [Str "c",Space,Str "c",Space,Str "2"] ] ],
+ [ [ Plain [Str "r2",Space,Str "d"] ]
+ , [ Plain [Str "e"] ]
+ , [ Plain [Str "f"] ] ] ]
+, Para [Str "Headless"]
+, Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
+ [ []
+ , []
+ , [] ] [
+ [ [ Plain [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"] ]
+ , [ Plain [Str "b",Space,Str "b",Space,Str "2"] ]
+ , [ Plain [Str "c",Space,Str "c",Space,Str "2"] ] ],
+ [ [ Plain [Str "r2",Space,Str "d"] ]
+ , [ Plain [Str "e"] ]
+ , [ Plain [Str "f"] ] ] ] ]