Skip to content

Commit

Permalink
Remove length restrictions for pretty printer
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliya-usov committed Jan 19, 2024
1 parent 6801316 commit 10f9d8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fun Any?.print(printer: PrettyPrinter) {
is String -> printer.print("\"$this\"")
is Throwable -> printer.print(getThrowableText())
is List<*> -> {
val maxPrint = 3
val maxPrint = Int.MAX_VALUE
printer.print("[")
val cnt = this@print.size
printer.indent {
Expand Down
2 changes: 1 addition & 1 deletion rd-net/RdFramework/Util/PrettyPrinter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Dispose()
[PublicAPI] public int Step { get; set; } = 2;

[PublicAPI]
public int CollectionMaxLength { get; set; } = 3;
public int CollectionMaxLength { get; set; } = int.MaxValue;
#endregion

#region Settings for PrettyPriter clients
Expand Down
2 changes: 1 addition & 1 deletion rd-net/RdFramework/Util/SingleLinePrettyPrinter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class SingleLinePrettyPrinter : PrettyPrinter
{
public SingleLinePrettyPrinter()
{
BufferCapacity = 1000;
BufferCapacity = InfiniteCapacity;
}
public override string ToString()
{
Expand Down

0 comments on commit 10f9d8a

Please sign in to comment.