[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: [Bug 100109] New: indentation is very inconsistant
From: Hendrik Sattler <sattler2000 () gmx ! de>
Date: 2005-02-23 18:35:33
Message-ID: 20050223193532.100109.sattler2000 () gmx ! de
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=100109
Summary: indentation is very inconsistant
Product: kate
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kwrite-devel kde org
ReportedBy: sattler2000 gmx de
Version: (using KDE KDE 3.3.2)
Installed from: Debian testing/unstable Packages
Hi,
The indentation in kate is very inkonsistant. Some example:
1.
seperating function arguments with ',' on multiple lines aligns them
to '(' except for the case that '(' is in column 47 or above:
This case happens very early when using spaces for indentation. Also
the "48" does not seems to be there for any reason and is not configurable.
2.
having _one_ function argument that does concatenation e.g. with '+' does
NOT align to '(' although it should (at least in my understanding)
3.
if statements are treated completely different: for no obvious reason, it
looks like (many examples, \t is one tab):
a)
if (true
\t||false)
{
}
b)
\tif (true
\t\t ||false)
\t{
\t}
c)
\t{
\t\tif (true
\t\t\t\t ||false)
\t\t{
\t\t}
\t}
...and so on. This is just completely wrong. It should (see bug #100108) be
tab * indentation_level + space * sizeof("if (")
Also, auto-indenting that adds spaces after '}' and '{' that get removed by the \
function that removes spaces from the end of a line. If I move the '{' in case c) on \
the same line with the ')', then it gets a real mess: \t\tif (true
\t\t\t\t ||false) {
\t\t\t\tfunc();
\t\t\t\t }
What's that?
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic