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

List:       kwrite-devel
Subject:    [Bug 104533] New: peculiar c-style indentation after indented
From:       Leo Savernik <l.savernik () aon ! at>
Date:       2005-04-25 14:52:33
Message-ID: 20050425165232.104533.l.savernik () aon ! at
[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=104533         
           Summary: peculiar c-style indentation after indented parameter
                    lists
           Product: kate
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel kde org
        ReportedBy: l.savernik aon at


Version:            (using KDE KDE 3.4.0)
Installed from:    Compiled From Sources

Let's pretend I have this snippet of code in KDE 3.4.0's Kate (| denotes position of \
caret):














// kate: tab-indents on; space-indent on; replace-tabs off; indent-width 2; \
indent-mode: cstyle; dynamic-word-wrap off; void RenderParagraph::calcWidths(int \
                available_width, RenderStyle *style,
                                 int &width, int &lmargin, int &rmargin) {|
}

Then I hit enter.

Expected result:
// kate: tab-indents on; space-indent on; replace-tabs off; indent-width 2; \
indent-mode: cstyle; dynamic-word-wrap off; void RenderParagraph::calcWidths(int \
available_width, RenderStyle *style,  int &width, int &lmargin, int &rmargin) {
  |
}

Actual result:
// kate: tab-indents on; space-indent on; replace-tabs off; indent-width 2; \
indent-mode: cstyle; dynamic-word-wrap off; void RenderParagraph::calcWidths(int \
available_width, RenderStyle *style,  int &width, int &lmargin, int &rmargin) {
                                   |
}

So kate takes the indent of the line containing the opening brace without regarding \
the actual start of the statement. _______________________________________________
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