From 66f8dc14b7aaa35b7bad31117103cc1596a27ac2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 7 Apr 2012 17:08:52 -0700 Subject: Docx writer: Fixed multi-paragraph list items. Previously they each got a list marker. Closes #457. --- src/Text/Pandoc/Writers/Docx.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index a2995b705..f2bef9e6b 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -488,7 +488,10 @@ getParaProps :: WS [Element] getParaProps = do props <- gets stParaProperties listLevel <- gets stListLevel - numid <- getNumId + listMarker <- gets stListMarker + numid <- case listMarker of + NoMarker -> return 1 + _ -> getNumId let listPr = if listLevel >= 0 then [ mknode "w:numPr" [] [ mknode "w:numId" [("w:val",show numid)] () -- cgit v1.2.3