From 82ca00f5f5cdca192f5f01e9b8e18d4500a8627c Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 5 Jul 2010 16:18:26 +0000 Subject: [PATCH] codetools: debugging git-svn-id: trunk@26473 - --- components/codetools/codebeautifier.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/codetools/codebeautifier.pas b/components/codetools/codebeautifier.pas index 69abaf53c9..178c8b59af 100644 --- a/components/codetools/codebeautifier.pas +++ b/components/codetools/codebeautifier.pas @@ -1713,10 +1713,12 @@ begin if (PrevLineAtomEndPos>0) then PrevLineAtomEndPos:=FindPrevNonSpace(Source,PrevLineAtomEndPos); + //debugln(['TFullyAutomaticBeautifier.GetIndent AAA1 ',Stack.LastBlockClosed.StartPos,' ',PositionsInSameLine(Source,Stack.LastBlockClosed.StartPos,Block.StartPos),' SubTypeValid=',SubTypeValid]); if (Stack.LastBlockClosed.StartPos>0) and (not PositionsInSameLine(Source,Stack.LastBlockClosed.StartPos,Block.StartPos)) and ((not SubTypeValid) or (SubType in bbtAllAlignToSibling)) then begin + //debugln(['TFullyAutomaticBeautifier.GetIndent AAA2 ',Stack.LastBlockClosedAt,' ',PositionsInSameLine(Source,Stack.LastBlockClosedAt,PrevLineAtomEndPos)]); // a child block was closed that was started in another line than current block // and this subtype aligns as its siblings if (Stack.LastBlockClosedAt>0)