diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index 18abafe40043bee57e493fd4a39f5f6597093c2b..2e4dfe59e732916f614ab3c5bd40f664f381623d 100644 --- a/src/plugins/texteditor/plaintexteditor.cpp +++ b/src/plugins/texteditor/plaintexteditor.cpp @@ -109,11 +109,10 @@ void PlainTextEditor::indentBlock(QTextDocument *doc, QTextBlock block, QChar ty return; // Just use previous line. - // Skip non-alphanumerical characters when determining the indentation - // to enable writing bulleted lists whose items span several lines. + // Skip blank characters when determining the indentation int i = 0; while (i < previousText.size()) { - if (previousText.at(i).isLetterOrNumber()) { + if (!previousText.at(i).isSpace()) { const TextEditor::TabSettings &ts = tabSettings(); ts.indentLine(block, ts.columnAt(previousText, i)); break;