From 11ee92d92b1e9875a2707848324012fe881bf893 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Sun, 6 Aug 2017 22:18:36 -0400 Subject: kconfigini: Strip leading whitespace when reading entry values. As per the Desktop Entry spec, we strip trailing whitespace from the key when we split an entry into a key/value pair at the '='. Now we also strip leading whitespace from the resulting value like we should. CCBUG:310674 Differential Revision: https://phabricator.kde.org/D7169 --- autotests/kdesktopfiletest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autotests/kdesktopfiletest.cpp') diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp index a0461964..55e92569 100644 --- a/autotests/kdesktopfiletest.cpp +++ b/autotests/kdesktopfiletest.cpp @@ -43,10 +43,10 @@ void KDesktopFileTest::testRead() QTextStream ts(&file); ts << "[Desktop Entry]\n" - "Type=Application\n" + "Type= Application\n" "Name=My Application\n" - "Icon=foo\n" - "MimeType=text/plain;image/png;\n" + "Icon = foo\n" + "MimeType =text/plain;image/png;\n" "\n"; file.close(); QVERIFY(QFile::exists(fileName)); -- cgit v1.2.1