Skip to content

Commit

Permalink
ConsoleApp: proc. DisplayTaggedText - strip color tags when FUseColor…
Browse files Browse the repository at this point in the history
…s = False
  • Loading branch information
jackdp committed Aug 5, 2022
1 parent c466c13 commit 46e3053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Base/JPL.ConsoleApp.pas
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,11 @@ procedure TJPConsoleApp.DisplayTaggedText(const TaggedText: string);
i: integer;
s: string;
begin
if Trim(TaggedText) = '' then Exit;

if not FUseColors then
begin
Write(TaggedText); // ToDo: Dodać usuwanie znaczników <color>
Write(StripColorTags(TaggedText)); // Done: Dodać usuwanie znaczników <color>
Exit;
end;

Expand Down

0 comments on commit 46e3053

Please sign in to comment.