It seems that rst2odt does not generate unique draw:name attribute for
each images embedded with '.. image::' or '.. figure::' directives,
and that causes strange problem that only 1st and 2nd images are shown
in generated ODT document.
I've created an experimental patch looks resolving this problem in https://bugzilla.redhat.com/show_bug.cgi?id=1360651 (The patch is https://bugzilla.redhat.com/attachment.cgi?id=1248317 ).
I've applied the patch mentioned below. And, the patch does
actually make a difference in the
content.xmlfile created inthe resulting .odt file.
However, I do not know how to re-creajte the error. I've place 3
".. image::" directives in a test input file. Those 3 images all
seem to show up OK both with and without this patch.
So, the patch works. The images are generated. The resulting file,
when viewed in LibreOffice looks good. Maybe that's good enough.
Or, maybe you can you give me a suggestion on how to produce the
error condition.
Dave K
Last edit: Günter Milde 2017-07-17
The point not mentioned in the description above but in the sample provided with the "downstream" bug report at redhat is that all three image directives pointed to the same image file.
I could reproduce the error with the pre-patch version and the fix with the post-patch version.
Thanks for report, patch, and fixing.
Is the patch merged?
Yes, it is.