Manager: Run clang-format

This commit is contained in:
Riyyi
2022-01-24 01:09:22 +01:00
parent 4da262a8fe
commit 1b4de8fb5d
+3 -3
View File
@@ -270,12 +270,12 @@ void Dotfile::selectivelyCommentOrUncomment(const std::string& path)
if (!addComment) { if (!addComment) {
line = line.substr(0, whiteSpaceBeforeComment) line = line.substr(0, whiteSpaceBeforeComment)
+ line.substr(contentAfterComment); + line.substr(contentAfterComment);
} }
else { else {
line = line.substr(0, whiteSpaceBeforeComment) line = line.substr(0, whiteSpaceBeforeComment)
+ commentCharacter + ' ' + commentCharacter + ' '
+ line.substr(contentAfterComment); + line.substr(contentAfterComment);
} }
dotfile.replace(positionInFile, lineLength, line); dotfile.replace(positionInFile, lineLength, line);