mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 09:55:57 +00:00
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:
@@ -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.
Reference in New Issue
Block a user