odftoolkit icon indicating copy to clipboard operation
odftoolkit copied to clipboard

OdfDrawFrame childnode SvgTitleElement is serialized as SvgDescElement

Open django9876 opened this issue 1 year ago • 3 comments

I am working with alternative texts for images, which are saved as SvgTitleElement, a childnode of an OdfDrawFrame object. The odftoolkit parses an odt-file correctly, but when saving it, the SvgTitleElement is converted to a SvgDescElement. On Reopening the file, the child node of the instance SvgTitleElement is lost, the libreoffice-writer does not show an alternative text. Version: 0.12.0 and 0.10.0

django9876 avatar May 22 '24 14:05 django9876

Could you please provide a draft pull request with a test case of your scenario, to easily reproduce your problem?

svanteschubert avatar May 22 '24 16:05 svanteschubert

I fail. I will provide test file at least. TestCase.odt

django9876 avatar May 23 '24 09:05 django9876

I have added PR #295 with a test case that shows that on the current master branch, the problem no longer exists. You may copy the test to your environment. Sorry, I can not reproduce the problem...

svanteschubert avatar May 23 '24 19:05 svanteschubert