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

--- Comment #6 from Ahmad Samir <a.samir...@gmail.com> ---
Git commit fceb6fef10932a5b6aaf698c102f05bbed04e12a by Ahmad Samir.
Committed on 10/08/2022 at 18:20.
Pushed by cullmann into branch 'master'.

KateDocument: always add space after single line comment start marker

So that if you have code:
if (foo) {
    do_something();
}

commenting out the second line, it would become (assuming the
position="afterwhitespace" option is set in c.xml):
if (foo) {
    // do_something();
}

This works better with clang-format, which insists on reformatting this:
    //do_something();
to
    // do_something();

to the version with the space, "// ".

Fix unittests.

M  +1    -1    autotests/src/katedocument_test.cpp
M  +1    -2    src/document/katedocument.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/fceb6fef10932a5b6aaf698c102f05bbed04e12a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to