Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove length restrictions for pretty printer #469

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = [email protected]
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
Loading