Skip to content

Commit

Permalink
Fix invalid OOXML in definition_list.docx test.
Browse files Browse the repository at this point in the history
Closes #10394.
  • Loading branch information
jgm committed Mar 6, 2025
1 parent e73b9ee commit 45fdd1d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
Binary file modified test/docx/definition_list.docx
Binary file not shown.
40 changes: 33 additions & 7 deletions test/docx/definition_list.native
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
[DefinitionList
[([Str "Term",Space,Str "1"],
[[Para [Str "Definition",Space,Str "1"]]])
,([Str "Term",Space,Str "2",Space,Str "with",Space,Emph [Str "inline",Space,Str "markup"]],
[[Para [Str "Definition",Space,Str "2"]
,CodeBlock ("",[],[]) "{ some code, part of Definition 2 }"
,Para [Str "Third",Space,Str "paragraph",Space,Str "of",Space,Str "definition",Space,Str "2."]]])]]
[ DefinitionList
[ ( [ Str "Term" , Space , Str "1" ]
, [ [ Para [ Str "Definition" , Space , Str "1" ] ] ]
)
, ( [ Str "Term"
, Space
, Str "2"
, Space
, Str "with"
, Space
, Emph [ Str "inline" , Space , Str "markup" ]
]
, [ [ Para [ Str "Definition" , Space , Str "2" ]
, Para
[ Code
( "" , [] , [] ) "{ some code, part of Definition 2 }"
]
, Para
[ Str "Third"
, Space
, Str "paragraph"
, Space
, Str "of"
, Space
, Str "definition"
, Space
, Str "2."
]
]
]
)
]
]
Binary file modified test/docx/golden/definition_list.docx
Binary file not shown.

0 comments on commit 45fdd1d

Please sign in to comment.