diff options
| author | John MacFarlane <[email protected]> | 2025-02-01 10:39:31 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-02-01 10:39:31 -0800 |
| commit | fe3e7c948c986e00e563eea640bc5eb3b9bde210 (patch) | |
| tree | bde36c2f750131a60ae248bc844ecf419a56acc8 /test | |
| parent | 8e18a811b40456af47174e7f6b41ebc97c21da8f (diff) | |
ODT reader: create Figure elements for images that are figures.
Closes #10567.
Diffstat (limited to 'test')
| -rw-r--r-- | test/odt/native/imageIndex.native | 29 | ||||
| -rw-r--r-- | test/odt/native/imageWithCaption.native | 29 |
2 files changed, 56 insertions, 2 deletions
diff --git a/test/odt/native/imageIndex.native b/test/odt/native/imageIndex.native index fe7b69c16..5388bc4df 100644 --- a/test/odt/native/imageIndex.native +++ b/test/odt/native/imageIndex.native @@ -1 +1,28 @@ -[Para [Image ("",[],[("width","5.292cm"),("height","5.292cm")]) [Str "Abbildung",Space,Str "1:",Space,Str "Image",Space,Str "caption"] ("Pictures/10000000000000FA000000FAD6A15225.jpg","fig:")]] +[ Figure + ( "" , [] , [] ) + (Caption + Nothing + [ Plain + [ Str "Image" + , Space + , Str "caption" + ] + ]) + [ Plain + [ Image + ( "" + , [] + , [ ( "width" , "5.292cm" ) , ( "height" , "5.292cm" ) ] + ) + [ Str "Abbildung" + , Space + , Str "1:" + , Space + , Str "Image" + , Space + , Str "caption" + ] + ( "Pictures/10000000000000FA000000FAD6A15225.jpg" , "" ) + ] + ] +]
\ No newline at end of file diff --git a/test/odt/native/imageWithCaption.native b/test/odt/native/imageWithCaption.native index fe7b69c16..5388bc4df 100644 --- a/test/odt/native/imageWithCaption.native +++ b/test/odt/native/imageWithCaption.native @@ -1 +1,28 @@ -[Para [Image ("",[],[("width","5.292cm"),("height","5.292cm")]) [Str "Abbildung",Space,Str "1:",Space,Str "Image",Space,Str "caption"] ("Pictures/10000000000000FA000000FAD6A15225.jpg","fig:")]] +[ Figure + ( "" , [] , [] ) + (Caption + Nothing + [ Plain + [ Str "Image" + , Space + , Str "caption" + ] + ]) + [ Plain + [ Image + ( "" + , [] + , [ ( "width" , "5.292cm" ) , ( "height" , "5.292cm" ) ] + ) + [ Str "Abbildung" + , Space + , Str "1:" + , Space + , Str "Image" + , Space + , Str "caption" + ] + ( "Pictures/10000000000000FA000000FAD6A15225.jpg" , "" ) + ] + ] +]
\ No newline at end of file |
