Bug 157321 - Kates makes spaces instead of Tabs
Summary: Kates makes spaces instead of Tabs
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-07 09:25 UTC by Thomas Kamps
Modified: 2009-04-18 16:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kamps 2008-02-07 09:25:51 UTC
Version:           3.0.1 (using 4.0.1 (KDE 4.0.1) "release 7.1", compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22.9-0.4-my

First: the option: "Use spaces instaed of tabs" is disabled.
But Kate makes two spaces instead of one tab when pressing the Tab-key.
Comment 1 Thomas Kamps 2008-02-22 19:51:53 UTC
The problem has to do with with the Settings for indent-depht and tab-width.
When pressing Tab, Kate makes an indent with the given ident-depth and uses as much Tabs as possible.

Exaples:
1. intent-depth 5, tab-width: 2-> When pressing Tab you get 2 tabs and one space
2. indet-depth 6, tab-width: 6 -> 1 tab
3. indet-depth 2, tab-width: 8 -> 2 spaces

Possible solution:
Kate/krwite indents tabs to the given indent-depth; always
And only if "use spaces instead of tabs" is active, kate/kwrite makes n spaces, where n ist the given tab-width.
Comment 2 Christoph Cullmann 2009-04-18 16:16:41 UTC
This problem is away with the new settings for indentation/edit in KDE 4.2's Kate, still there is now the issue of inserting tabs, if you have enforced spaces, but thats Bug 145664.