From 2a84e748a90e58e8accb4d9274505d805ac5f8f8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 20 Jan 2012 13:03:47 -0800 Subject: Docx writer: Don't indent first level of lists. --- src/Text/Pandoc/Writers/Docx.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index 000f15f22..1f28e5d17 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -77,7 +77,7 @@ defaultWriterState = WriterState{ , stSectionIds = [] , stExternalLinks = M.empty , stImages = M.empty - , stListLevel = 0 -- not in a list + , stListLevel = -1 , stListMarker = NoMarker , stNumStyles = M.fromList [(NoMarker, 0)] , stLists = [NoMarker] @@ -477,7 +477,7 @@ getParaProps = do props <- gets stParaProperties listLevel <- gets stListLevel numid <- getNumId - let listPr = if listLevel >= 1 + let listPr = if listLevel >= 0 then [ mknode "w:numPr" [] [ mknode "w:numId" [("w:val",show numid)] () , mknode "w:ilvl" [("w:val",show listLevel)] () ] -- cgit v1.2.3