The source project of this merge request has been removed.
KRecentDocument: Improve compat with Gtk File Picker
When a KDE program would write recent files initially it would output something like:
<?xml version="1.0" encoding="UTF-8"?>
<xbel version="1.0" xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks" xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"> <bookmark href="file:///home/meven/Images/Screenshot_20220326_104027.png" added="2022-07-30T12:38:19.237607Z" modified="2022-07-30T12:38:19.960219Z" visited="2022-07-30T12:38:19.237609Z">
<info>
Which is correct in XML, but GTK xml parser does not let it slides and expects a \n before the "bookmark" start element.
Previously there could be duplicate of entries as soon as the concerned bookmark was not the last one in the xbel file. The second commit fix that.
Edited by Méven Car