Skip to content

Commit

Permalink
fix(docx): fix validation error on w:annotationRef
Browse files Browse the repository at this point in the history
annotationRef is not valid for `w:rPr`, only for `w:r` according to
wml.xsd.

See jgm#9269

Signed-off-by: Edwin Török <edwin@etorok.net>
  • Loading branch information
edwintorok committed Dec 18, 2023
1 parent ded8132 commit 6356a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/Docx.hs
Expand Up @@ -885,8 +885,8 @@ writeOpenXML opts (Pandoc meta blocks) = do
, mknode "w:r" []
[ mknode "w:rPr" []
[ mknode "w:rStyle" [("w:val", "CommentReference")] ()
, mknode "w:annotationRef" [] ()
]
, mknode "w:annotationRef" [] ()
]
] ++ annotation
]
Expand Down

0 comments on commit 6356a7e

Please sign in to comment.