aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Docx.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx.hs')
-rw-r--r--src/Text/Pandoc/Readers/Docx.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs
index 8ec14c040..da0cca1dc 100644
--- a/src/Text/Pandoc/Readers/Docx.hs
+++ b/src/Text/Pandoc/Readers/Docx.hs
@@ -837,7 +837,9 @@ bodyPartToBlocks (Tbl mbsty cap grid look parts) = do
alignments = case rows of
[] -> replicate width Pandoc.AlignDefault
Docx.Row _ cs : _ -> concatMap getAlignment cs
- widths = map ColWidth grid
+ widths = map (\n -> if n == 0
+ then ColWidthDefault
+ else ColWidth n) grid
extStylesEnabled <- asks (isEnabled Ext_styles . docxOptions)
let attr = case mbsty of