Commit 2986ccaf authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

PLain Text Editor: Remove list indentation

As it causes dashed lists to be formatted as
- i1
  - i2
Just do paragraph formatting.

Task-number: QTCREATORBUG-538
Initial-patch-by: default avatarThorbjørn Lindeijer <>
parent 73a447ff
......@@ -110,11 +110,10 @@ void PlainTextEditor::indentBlock(QTextDocument *doc, QTextBlock block, QChar ty
// 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 ( {
if (! {
const TextEditor::TabSettings &ts = tabSettings();
ts.indentLine(block, ts.columnAt(previousText, i));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment