git.iko.soy/typeable/pandoc
on master help sign in
Dokuwiki writer: Add a test for multiblock table cells.

We have to add a new file, because the original table tests don't look for this.

commit4eb9769a4c1904345239f5bf9b62b42802cbb9cd authorJesse Rosenthal <jrosenthal@jhu.edu> dateSat 30 Aug 2014, 15:34 (12 years ago) parentc3f60e9
3 files changed+19
tests/Tests/Old.hs+2 tests/dokuwiki_multiblock_table.dokuwiki+4 tests/dokuwiki_multiblock_table.native+13
tests/Tests/Old.hs+2
@@ -128,6 +128,8 @@ tests = [ testGroup "markdown"
128128 [ testGroup "writer" $ writerTests "dokuwiki"
129129 , test "inline_formatting" ["-r", "native", "-w", "dokuwiki", "-s"]
130130 "dokuwiki_inline_formatting.native" "dokuwiki_inline_formatting.dokuwiki"
131+ , test "multiblock table" ["-r", "native", "-w", "dokuwiki", "-s"]
132+ "dokuwiki_multiblock_table.native" "dokuwiki_multiblock_table.dokuwiki"
131133 ]
132134 , testGroup "opml"
133135 [ test "basic" ["-r", "native", "-w", "opml", "--columns=78", "-s"]
tests/dokuwiki_multiblock_table.dokuwikinew file+4
@@ -0,0 +1,4 @@
1+Sample grid table.
2+^ Fruit ^ Price ^ Advantages ^
3+| Bananas | $1.34 | built-in wrapper\\ \\ potassium |
4+| Oranges | $2.10 | * cures scurvy\\ * tasty |
tests/dokuwiki_multiblock_table.nativenew file+13
@@ -0,0 +1,13 @@
1+[Table [Str "Sample",Space,Str "grid",Space,Str "table."] [AlignDefault,AlignDefault,AlignDefault] [0.2222222222222222,0.2222222222222222,0.2916666666666667]
2+ [[Plain [Str "Fruit"]]
3+ ,[Plain [Str "Price"]]
4+ ,[Plain [Str "Advantages"]]]
5+ [[[Para [Str "Bananas"]]
6+ ,[Para [Str "$1.34"]]
7+ ,[Para [Str "built-in",Space,Str "wrapper"]
8+ ,Para [Str "potassium"]]]
9+ ,[[Para [Str "Oranges"]]
10+ ,[Para [Str "$2.10"]]
11+ ,[BulletList
12+ [[Plain [Str "cures",Space,Str "scurvy"]]
13+ ,[Plain [Str "tasty"]]]]]]]