[konsole] [Bug 412479] "trim leading spaces" eats empty lines

Kurt Hindenburg bugzilla_noreply at kde.org
Sat Oct 5 17:51:58 BST 2019


https://bugs.kde.org/show_bug.cgi?id=412479

--- Comment #2 from Kurt Hindenburg <kurt.hindenburg at gmail.com> ---
I wonder if something in Qt changed since this went in.

This appears to work - we don't want newlines \xa to be counted as spaces.

-            if (!QChar(characterBuffer[spacesCount].character).isSpace()) {
+            const QChar currentChar = characterBuffer[spacesCount].character;
+            if (currentChar == QChar(QLatin1Char('\xa')) ||
!currentChar.isSpace()) {

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list