From fde766016aedff7f9f7aa6be2eb073a244612cf8 Mon Sep 17 00:00:00 2001 From: Roopesh Chander <roop@forwardbias.in> Date: Sat, 31 Oct 2009 13:26:31 +0530 Subject: [PATCH] enable auto-determination of spaces/tabs for cleaning whitespace as well --- src/plugins/texteditor/basetextdocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetextdocument.cpp b/src/plugins/texteditor/basetextdocument.cpp index ae743ccb988..2e57eafd13d 100644 --- a/src/plugins/texteditor/basetextdocument.cpp +++ b/src/plugins/texteditor/basetextdocument.cpp @@ -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); } } -- GitLab