git.iko.soy/typeable/pandoc
on master help sign in
AsciiDoc writer: Added test for empty table cells.
41c89d5John MacFarlane
pandoc.cabal+1
@@ -392,6 +392,7 @@ Test-Suite test-pandoc
392 Tests.Writers.ConTeXt
392 Tests.Writers.ConTeXt
393 Tests.Writers.HTML
393 Tests.Writers.HTML
394 Tests.Writers.Markdown
394 Tests.Writers.Markdown
395+ Tests.Writers.AsciiDoc
395 Tests.Writers.LaTeX
396 Tests.Writers.LaTeX
396 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
397 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
397 Default-Language: Haskell98
398 Default-Language: Haskell98
tests/tables.asciidoc+4−7
@@ -52,20 +52,17 @@ Multiline table without caption:
52Table without column headers:
52Table without column headers:
53
53
54[cols=">,<,^,>",]
54[cols=">,<,^,>",]
55−|=============================================================================
55+|==================
56|12 |12 |12 |12
56|12 |12 |12 |12
57−
58|123 |123 |123 |123
57|123 |123 |123 |123
59−
60|1 |1 |1 |1
58|1 |1 |1 |1
61−|=============================================================================
59+|==================
62
60
63Multiline table without column headers:
61Multiline table without column headers:
64
62
65[width="78%",cols="^21%,<17%,>20%,42%",]
63[width="78%",cols="^21%,<17%,>20%,42%",]
66−|=============================================================================
64+|=======================================================================
67|First |row |12.0 |Example of a row that spans multiple lines.
65|First |row |12.0 |Example of a row that spans multiple lines.
68−
69|Second |row |5.0 |Here's another one. Note the blank line between rows.
66|Second |row |5.0 |Here's another one. Note the blank line between rows.
70−|=============================================================================
67+|=======================================================================
71
68
tests/test-pandoc.hs+2
@@ -15,6 +15,7 @@ import qualified Tests.Writers.HTML
15import qualified Tests.Writers.Docbook
15import qualified Tests.Writers.Docbook
16import qualified Tests.Writers.Native
16import qualified Tests.Writers.Native
17import qualified Tests.Writers.Markdown
17import qualified Tests.Writers.Markdown
18+import qualified Tests.Writers.AsciiDoc
18import qualified Tests.Shared
19import qualified Tests.Shared
19import qualified Tests.Walk
20import qualified Tests.Walk
20import Text.Pandoc.Shared (inDirectory)
21import Text.Pandoc.Shared (inDirectory)
@@ -30,6 +31,7 @@ tests = [ testGroup "Old" Tests.Old.tests
30 , testGroup "HTML" Tests.Writers.HTML.tests
31 , testGroup "HTML" Tests.Writers.HTML.tests
31 , testGroup "Docbook" Tests.Writers.Docbook.tests
32 , testGroup "Docbook" Tests.Writers.Docbook.tests
32 , testGroup "Markdown" Tests.Writers.Markdown.tests
33 , testGroup "Markdown" Tests.Writers.Markdown.tests
34+ , testGroup "AsciiDoc" Tests.Writers.AsciiDoc.tests
33 ]
35 ]
34 , testGroup "Readers"
36 , testGroup "Readers"
35 [ testGroup "LaTeX" Tests.Readers.LaTeX.tests
37 [ testGroup "LaTeX" Tests.Readers.LaTeX.tests