diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-12 15:36:29 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-12-12 15:36:29 -0800 |
commit | 7093a3b44cbd0b962c53a6e00db51d5de9a840f9 (patch) | |
tree | eade565cb3ad5f6f52c896f2d13925d12c66f3f7 /src/Text/Pandoc/Readers | |
parent | e86c337356fc723e366e5f0d6209205bcffe88f3 (diff) | |
download | pandoc-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.hs | 2 |
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'') |