Hi Marga,

here is a patch to remove this behavior.
The problem is, that after a closing bracket, astyle inserts a line break (after skipping over a comment).
I catched this special case.

Here the patch.
I tested it with some examples.

--- astyle-1.15.3/ASFormatter.cpp       2002-03-08 08:01:04.000000000 +0200
+++ astyle-1.15.3-tilo/ASFormatter.cpp  2005-07-16 12:00:39.000000000 +0300
@@ -445,7 +445,7 @@
            isCharImmediatelyPostLineComment = true;
        }

-        if (shouldBreakLineAfterComments)
+ if (shouldBreakLineAfterComments && !((previousCommandChar == '}')&&(currentChar == ';') ))
        {
            shouldBreakLineAfterComments = false;
            shouldReparseCurrentChar = true;


Greetings

tilo
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to