SUMMARY Tooltips for images don't show tags containing "<" correctly. In table view display is correct. STEPS TO REPRODUCE 1. Create a tag containing "<" e.g. "good (<=5%)" 2. Assign it to an imgae 3. Hover over image in thumbnail view displaying the tooltip with digiKam properties OBSERVED RESULT Text is cut off at "<" symbol EXPECTED RESULT Text should be completely displayed as also other tags do
Can you provide an image sample including this kind of tags in metadata to reproduce Thanks in advance Gilles Caulier
The tooltip is rendered in HTML. I guess we need to encode the tag text with QString::toHtmlEscaped(). Maik
@Gilles: It is not metadata saved within the image, but a tag assigned via digiKam (database only). I think Maik is right, as "Test <bla> Test2" completely removes the part between the angle brackets.
yes it's tag, but it can be hosted in file metadata for interoperability. So yes a such image with this king of tag, imported in a local session of digiKam can help to reproduce the problem. Gilles Caulier
Git commit 7a672537ee7671355384bd86ee9b47a5db2ab3eb by Maik Qualmann. Committed on 04/05/2021 at 17:09. Pushed by mqualmann into branch 'master'. use HTML escape for tags in the tooltip FIXED-IN: 7.3.0 M +1 -2 NEWS M +1 -1 core/app/items/utils/tooltipfiller.cpp https://invent.kde.org/graphics/digikam/commit/7a672537ee7671355384bd86ee9b47a5db2ab3eb
Thanks Maik for the quick fix! @Gilles: I usually do not taint the image files with anything, so I had to find again how to reactivate that behavior temporarily. BTW on that: The Menu entry to write metadata into files (now) is active but obviously useless if nothing is checked in the settings which metadata should be written to files. If something is checked the use is limited to the case where "lazy synchronization" is activated, too as otherwise this is done on-the-fly anyway.