Docx writer: fix validation error.

The elements in pPr in lists were not properly ordered.
This doesn't seem to cause problems for Word, but it makes
validation fail and may pose problems for other consumers of
docx.  Closes #9265.
This commit is contained in:
John MacFarlane
2023-12-18 09:54:14 -08:00
parent 72269357b7
commit 9c5e6aeedc
4 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -1246,7 +1246,7 @@ getParaProps displayMathPara = do
let listPr = [mknode "w:numPr" []
[ mknode "w:ilvl" [("w:val",tshow listLevel)] ()
, mknode "w:numId" [("w:val",tshow numid')] () ] | listLevel >= 0 && not displayMathPara]
return $ case listPr ++ squashProps props of
return $ case squashProps (EnvProps Nothing listPr <> props) of
[] -> []
ps -> [mknode "w:pPr" [] ps]
Binary file not shown.
Binary file not shown.
Binary file not shown.