forked from qt-creator/qt-creator
enable auto-determination of spaces/tabs for cleaning whitespace as well
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
2d9996c703
commit
fde766016a
@@ -336,7 +336,7 @@ void BaseTextDocument::cleanWhitespace(QTextCursor& cursor, bool cleanIndentatio
|
||||
} else {
|
||||
int column = m_tabSettings.columnAt(blockText, firstNonSpace);
|
||||
cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor, firstNonSpace);
|
||||
QString indentationString = m_tabSettings.indentationString(0, column);
|
||||
QString indentationString = m_tabSettings.indentationString(0, column, block);
|
||||
cursor.insertText(indentationString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user