Bug 395430

Summary: Indentation in spaces not working in Block Selection Mode
Product: [Applications] kate Reporter: zeta <franciscodezuviria>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.58

Description zeta 2018-06-15 13:40:20 UTC
Configure Katepart like this (From Kate's UI)

Configure Kate
..Editor Component
....Editing
......Indentation
........Indent Using
..........Spaces: SELECTED
........Indentation Actions
..........Always advance to the next tab position: SELECTED

Works fine for simple editing.

But on Block Selection Mode it inserts TABS instead of spaces.

Example: if you want to add many spaces between Col1 and Col2 in:

Col1 Col2
Col1 Col2
Col1 Col2

result is (not actually \t but a tab)
Col1 \tCol2
Col1 \tCol2
Col1 \tCol2

instead of spaces
Col1     Col2
Col1     Col2
Col1     Col2
Comment 1 Lothar 2019-04-13 18:11:10 UTC
Git commit 78a2e5d1daa5007f9c8a185415c404b189167919 by loh tar.
Committed on 13/04/2019 at 18:08.
Pushed by lohtar into branch 'master'.

DocumentPrivate: Respect indention mode when block selection

Summary:
Without this patch was in block selection mode always a tab inserted, also when
configured to use spaces on tab-key press
FIXED-IN: 5.58

Differential Revision: https://phabricator.kde.org/D19450

M  +2    -1    src/document/katedocument.cpp

https://commits.kde.org/ktexteditor/78a2e5d1daa5007f9c8a185415c404b189167919