diff options
author | ickc <ickc@users.noreply.github.com> | 2016-05-09 19:24:40 -0700 |
---|---|---|
committer | ickc <ickc@users.noreply.github.com> | 2016-05-09 19:24:40 -0700 |
commit | 0ae60a91535a8f55f3061f36fdb3a54f6ddda85d (patch) | |
tree | f0c74ae411967ed5f67bd8b0bdf175ee5ca964ab /src/Text/Pandoc/Writers/Org.hs | |
parent | 846fa8704618e7e544313f5b3b627ccb6e65b550 (diff) | |
parent | f7601297f0ff184a59efdc3ea279137fc6012eef (diff) | |
download | pandoc-0ae60a91535a8f55f3061f36fdb3a54f6ddda85d.tar.gz |
Merge pull request #1 from jgm/master
Merge from jgm's master
Diffstat (limited to 'src/Text/Pandoc/Writers/Org.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Org.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Org.hs b/src/Text/Pandoc/Writers/Org.hs index 20086ed19..e57a6fc11 100644 --- a/src/Text/Pandoc/Writers/Org.hs +++ b/src/Text/Pandoc/Writers/Org.hs @@ -170,7 +170,7 @@ blockToOrg (Table caption' _ _ headers rows) = do map ((+2) . numChars) $ transpose (headers' : rawRows) -- FIXME: Org doesn't allow blocks with height more than 1. let hpipeBlocks blocks = hcat [beg, middle, end] - where h = maximum (map height blocks) + where h = maximum (1 : map height blocks) sep' = lblock 3 $ vcat (map text $ replicate h " | ") beg = lblock 2 $ vcat (map text $ replicate h "| ") end = lblock 2 $ vcat (map text $ replicate h " |") |