git.iko.soy/typeable/pandoc
on master help sign in
AsciiDoc writer: Added test for empty table cells.
commit41c89d51c7b3d0099e72c0693bfd413bb4498de9 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 May 2014, 21:24 (12 years ago) parentfde52c2
3 files changed+7−7
pandoc.cabal+1 tests/tables.asciidoc+4−7 tests/test-pandoc.hs+2
pandoc.cabal+1
@@ -392,6 +392,7 @@ Test-Suite test-pandoc
392392 Tests.Writers.ConTeXt
393393 Tests.Writers.HTML
394394 Tests.Writers.Markdown
395+ Tests.Writers.AsciiDoc
395396 Tests.Writers.LaTeX
396397 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
397398 Default-Language: Haskell98
tests/tables.asciidoc+4−7
@@ -52,20 +52,17 @@ Multiline table without caption:
5252Table without column headers:
5353
5454[cols=">,<,^,>",]
55−|=============================================================================
55+|==================
5656|12 |12 |12 |12
57−
5857|123 |123 |123 |123
59−
6058|1 |1 |1 |1
61−|=============================================================================
59+|==================
6260
6361Multiline table without column headers:
6462
6563[width="78%",cols="^21%,<17%,>20%,42%",]
66−|=============================================================================
64+|=======================================================================
6765|First |row |12.0 |Example of a row that spans multiple lines.
68−
6966|Second |row |5.0 |Here's another one. Note the blank line between rows.
70−|=============================================================================
67+|=======================================================================
7168
tests/test-pandoc.hs+2
@@ -15,6 +15,7 @@ import qualified Tests.Writers.HTML
1515import qualified Tests.Writers.Docbook
1616import qualified Tests.Writers.Native
1717import qualified Tests.Writers.Markdown
18+import qualified Tests.Writers.AsciiDoc
1819import qualified Tests.Shared
1920import qualified Tests.Walk
2021import Text.Pandoc.Shared (inDirectory)
@@ -30,6 +31,7 @@ tests = [ testGroup "Old" Tests.Old.tests
3031 , testGroup "HTML" Tests.Writers.HTML.tests
3132 , testGroup "Docbook" Tests.Writers.Docbook.tests
3233 , testGroup "Markdown" Tests.Writers.Markdown.tests
34+ , testGroup "AsciiDoc" Tests.Writers.AsciiDoc.tests
3335 ]
3436 , testGroup "Readers"
3537 [ testGroup "LaTeX" Tests.Readers.LaTeX.tests