mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 22:39:21 +02:00
LazLogger: Optimize indent handling / fix reset indent for DbgOut
git-svn-id: trunk@60263 -
This commit is contained in:
parent
185d63ac35
commit
4ee1459b01
@ -720,14 +720,14 @@ begin
|
||||
dirty reads should therefore yield the correct value: "true"
|
||||
*)
|
||||
|
||||
if FDebugNestAtBOL and (s <> '') and (FDebugNestLvl <> 0) then begin
|
||||
EnterCriticalsection(FIndentCriticalSection);
|
||||
//if FDebugNestAtBOL then
|
||||
s := FDebugIndent + s;
|
||||
//FDebugNestAtBOL := (s[length(s)] in [#10,#13]);
|
||||
LeaveCriticalsection(FIndentCriticalSection);
|
||||
if s <> '' then begin
|
||||
if FDebugNestAtBOL and (FDebugNestLvl <> 0) then begin
|
||||
EnterCriticalsection(FIndentCriticalSection);
|
||||
s := FDebugIndent + s;
|
||||
LeaveCriticalsection(FIndentCriticalSection);
|
||||
end;
|
||||
FDebugNestAtBOL := (s[length(s)] in [#10,#13]);
|
||||
end;
|
||||
FDebugNestAtBOL := (s = '') or (s[length(s)] in [#10,#13]);
|
||||
|
||||
if OnDbgOut <> nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user