Skip to content
Snippets Groups Projects
Commit fde76601 authored by Roopesh Chander's avatar Roopesh Chander Committed by Thorbjørn Lindeijer
Browse files

enable auto-determination of spaces/tabs for cleaning whitespace as well

parent 2d9996c7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment