[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 280798] New: setting indentation to "tabulator and spaces" with
From:       Marcel Meyer <meyerm () fs ! tum ! de>
Date:       2011-08-25 20:36:00
Message-ID: bug-280798-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=280798

           Summary: setting indentation to "tabulator and spaces" with the
                    same width is not possible / indentation mixed up
           Product: kdevelop
           Version: 4.2.3
          Platform: openSUSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: all editors
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: meyerm@fs.tum.de


Version:           4.2.3 (using KDE 4.7.0) 
OS:                Linux

I am trying to use the automatic indentation to indent as I would do. First an
example (. == space, :::::::: == tab):

void
function( int a )
{
::::::::printf( "%s = %d\n",
::::::::........"Your variable a",
::::::::........a );
}

So, logical indentation with tab(s), formating indentation with spaces (as it
should be - let the flamewar begin ;-) ). When I now set to Indentation
"Tabulators and Spaces" with the same width, KDevelop will forget that setting
and jump back to "Tabulators".

Whenever hitting Enter in one of the printf-lines above KDevelop will indent as
much as possible with tabs and fill up the rest with spaces.

I know that it worked in KDevelop 3 like I expected it. Perhaps I missed some
setting?

Thank you

Reproducible: Always

Steps to Reproduce:
Enter multiple line code with formatting needed and Indentation set to
"Tabulators and Spaces" set. Hit Enter.

Actual Results:  
The indentation is mixed between spaces and tabs.

Expected Results:  
KDevelop should only use tabs where the line before that used tabs and when the
logical indentation level was changed (new block). The rest of the line
shouldbe filled up with spaces (when using parameters in a function simply to
the beginning of the parameter in the first line or the line above the
currently added).

OS: Linux (x86_64) release 2.6.37.6-0.7-desktop
Compiler: gcc

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic