From kwrite-devel Mon Apr 25 14:52:33 2005 From: Leo Savernik Date: Mon, 25 Apr 2005 14:52:33 +0000 To: kwrite-devel Subject: [Bug 104533] New: peculiar c-style indentation after indented Message-Id: <20050425165232.104533.l.savernik () aon ! at> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=111444075929154 ------- 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