Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now straighten out tables after the blankline changes

  • Loading branch information...
commit d23fdb8a69c4d797c5ab71a3203ec782264431e9 1 parent 7996079
@castaway authored
Showing with 2 additions and 82 deletions.
  1. +2 −2 src/Text/Pandoc/Writers/PseudoPod.hs
  2. +0 −80 tests/tables.pod
View
4 src/Text/Pandoc/Writers/PseudoPod.hs
@@ -225,8 +225,8 @@ blockToPseudoPod opts (Table caption _ _ headers rows) = do
headers' <- mapM (blockListToPseudoPod opts) headers
rawRows <- mapM (mapM (blockListToPseudoPod opts)) rows
- let makeRow = hcat . intersperse (text("\n=cell "))
- let makeRowBlock = hcat . intersperse (text("\n=row\n\n=cell "))
+ let makeRow = hcat . intersperse (text("\n\n=cell "))
+ let makeRowBlock = hcat . intersperse (text("\n\n=row\n\n=cell "))
let rows' = map makeRow rawRows
let rows'' = makeRowBlock rows'
View
80 tests/tables.pod
@@ -10,13 +10,10 @@ Simple table with caption:
=cell Right
-
=cell Left
-
=cell Center
-
=cell Default
=bodyrows
@@ -25,41 +22,30 @@ Simple table with caption:
=cell 12
-
=cell 12
-
=cell 12
-
=cell 12
-
=row
=cell 123
-
=cell 123
-
=cell 123
-
=cell 123
-
=row
=cell 1
-
=cell 1
-
=cell 1
-
=cell 1
=end table
@@ -74,13 +60,10 @@ Simple table without caption:
=cell Right
-
=cell Left
-
=cell Center
-
=cell Default
=bodyrows
@@ -89,41 +72,30 @@ Simple table without caption:
=cell 12
-
=cell 12
-
=cell 12
-
=cell 12
-
=row
=cell 123
-
=cell 123
-
=cell 123
-
=cell 123
-
=row
=cell 1
-
=cell 1
-
=cell 1
-
=cell 1
=end table
@@ -138,13 +110,10 @@ Simple table indented two spaces:
=cell Right
-
=cell Left
-
=cell Center
-
=cell Default
=bodyrows
@@ -153,41 +122,30 @@ Simple table indented two spaces:
=cell 12
-
=cell 12
-
=cell 12
-
=cell 12
-
=row
=cell 123
-
=cell 123
-
=cell 123
-
=cell 123
-
=row
=cell 1
-
=cell 1
-
=cell 1
-
=cell 1
=end table
@@ -202,13 +160,10 @@ Multiline table with caption:
=cell Centered Header
-
=cell Left Aligned
-
=cell Right Aligned
-
=cell Default aligned
=bodyrows
@@ -217,27 +172,20 @@ Multiline table with caption:
=cell First
-
=cell row
-
=cell 12.0
-
=cell Example of a row that spans multiple lines.
-
=row
=cell Second
-
=cell row
-
=cell 5.0
-
=cell Here's another one. Note the blank line between rows.
=end table
@@ -252,13 +200,10 @@ Multiline table without caption:
=cell Centered Header
-
=cell Left Aligned
-
=cell Right Aligned
-
=cell Default aligned
=bodyrows
@@ -267,27 +212,20 @@ Multiline table without caption:
=cell First
-
=cell row
-
=cell 12.0
-
=cell Example of a row that spans multiple lines.
-
=row
=cell Second
-
=cell row
-
=cell 5.0
-
=cell Here's another one. Note the blank line between rows.
=end table
@@ -302,41 +240,30 @@ Table without column headers:
=cell 12
-
=cell 12
-
=cell 12
-
=cell 12
-
=row
=cell 123
-
=cell 123
-
=cell 123
-
=cell 123
-
=row
=cell 1
-
=cell 1
-
=cell 1
-
=cell 1
=end table
@@ -351,27 +278,20 @@ Multiline table without column headers:
=cell First
-
=cell row
-
=cell 12.0
-
=cell Example of a row that spans multiple lines.
-
=row
=cell Second
-
=cell row
-
=cell 5.0
-
=cell Here's another one. Note the blank line between rows.
=end table
Please sign in to comment.
Something went wrong with that request. Please try again.