forked from qt-creator/qt-creator
ClangFormat: Fix formatting for LineEnding CRLF
Change-Id: I10abc07f5d178a7114faba7174ea1bfc80965174 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -392,6 +392,7 @@ Utils::ChangeSet convertReplacements(const QTextDocument *doc,
|
|||||||
.size();
|
.size();
|
||||||
|
|
||||||
QString replacementText = QString::fromStdString(replacement.getReplacementText().str());
|
QString replacementText = QString::fromStdString(replacement.getReplacementText().str());
|
||||||
|
replacementText.replace("\r", "");
|
||||||
auto sameCharAt = [&](int replacementOffset) {
|
auto sameCharAt = [&](int replacementOffset) {
|
||||||
if (replacementText.size() <= replacementOffset || replacementOffset < 0)
|
if (replacementText.size() <= replacementOffset || replacementOffset < 0)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user