https://bugs.kde.org/show_bug.cgi?id=394853
Carsten Grohmann <carstengrohm...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carstengrohm...@gmx.de --- Comment #5 from Carsten Grohmann <carstengrohm...@gmx.de> --- I observe this behaviour also. Thereby I did some tests to provide further feedback. KRename stores the space characters correctly. But after loading the definition file, all tags containing only spaces are not displayed as expected. They are displayed as empty strings. Leading and trailing spaces are displayed as expected. The spaces in the rows #0 and #2 disappear, but row #1 is fully added to the dialog. Example: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE KRename> <KRename version="1.0"> <FindReplaceList rows="3"> <Row num="0"> <RegularExpression>0</RegularExpression> <Find> </Find> <ReplaceWith>simple space</ReplaceWith> <ProcessTokens>0</ProcessTokens> </Row> <Row num="1"> <RegularExpression>0</RegularExpression> <Find> x </Find> <ReplaceWith>space_x_space</ReplaceWith> <ProcessTokens>0</ProcessTokens> </Row> <Row num="2"> <RegularExpression>0</RegularExpression> <Find> </Find> <ReplaceWith>two spaces</ReplaceWith> <ProcessTokens>0</ProcessTokens> </Row> </FindReplaceList> </KRename> There is an old thread "QDomElement's text() for <element> </element> giving me a empty Qstring" from 2012 at http://www.qtcentre.org. Unfortunataly it's inaccessible - directly and via Google Cache. The thread describes that QDomElement.text() returns an empty Qstring if the element contains only spaces. It should be an old Qt bug. The suggested workaround is to use QXmlSimpleReader. The described behaviour can fit to the source in ReplaceDialog::slotLoadList(). Maybe you can use the examples and check if RowElement.firstChildElement("Find").text() returns an empty Qstring. Current versions * up-to-date ArchLinux * KRename 5.0.0 Regards, Carsten -- You are receiving this mail because: You are watching all bug changes.