Change order of ilvl and numId in document.xml (#5647)

Workaround for Word Online shortcomming. Fixes #5645

Also, make list para properties go first.

This reordering of properties shouldn't be necessary but
it seems Word Online does not understand the docx correctly otherwise.
This commit is contained in:
Agustín Martín Barbero 2019-07-19 18:32:43 +02:00 committed by John MacFarlane
parent 72ddbf5994
commit bd69218451
5 changed files with 3 additions and 3 deletions

View file

@ -1082,9 +1082,9 @@ getParaProps displayMathPara = do
listLevel <- asks envListLevel
numid <- asks envListNumId
let listPr = [mknode "w:numPr" []
[ mknode "w:numId" [("w:val",show numid)] ()
, mknode "w:ilvl" [("w:val",show listLevel)] () ] | listLevel >= 0 && not displayMathPara]
return $ case props ++ listPr of
[ mknode "w:ilvl" [("w:val",show listLevel)] ()
, mknode "w:numId" [("w:val",show numid)] () ] | listLevel >= 0 && not displayMathPara]
return $ case listPr ++ props of
[] -> []
ps -> [mknode "w:pPr" [] ps]

Binary file not shown.