aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-12 15:36:29 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-12 15:36:29 -0800
commit7093a3b44cbd0b962c53a6e00db51d5de9a840f9 (patch)
treeeade565cb3ad5f6f52c896f2d13925d12c66f3f7 /src/Text/Pandoc/Readers
parente86c337356fc723e366e5f0d6209205bcffe88f3 (diff)
downloadpandoc-7093a3b44cbd0b962c53a6e00db51d5de9a840f9.tar.gz
Markdown: Improved computation of relative cell widths in pipe tables.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index b97a724a4..68f810abe 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1353,7 +1353,7 @@ pipeTable = try $ do
numColumns <- getOption readerColumns
let widths = if maxlength > numColumns
then map (\len ->
- fromIntegral (len + 1) / fromIntegral (sum seplengths))
+ fromIntegral len / fromIntegral (sum seplengths))
seplengths
else replicate (length aligns) 0.0
return (aligns, widths, heads', sequence lines'')