Skip to content

Commit 10f9d8a

Browse files
committed
Remove length restrictions for pretty printer
1 parent 6801316 commit 10f9d8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rd-kt/rd-core/src/main/kotlin/com/jetbrains/rd/util/string/IPrintable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fun Any?.print(printer: PrettyPrinter) {
1717
is String -> printer.print("\"$this\"")
1818
is Throwable -> printer.print(getThrowableText())
1919
is List<*> -> {
20-
val maxPrint = 3
20+
val maxPrint = Int.MAX_VALUE
2121
printer.print("[")
2222
val cnt = this@print.size
2323
printer.indent {

rd-net/RdFramework/Util/PrettyPrinter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void Dispose()
3939
[PublicAPI] public int Step { get; set; } = 2;
4040

4141
[PublicAPI]
42-
public int CollectionMaxLength { get; set; } = 3;
42+
public int CollectionMaxLength { get; set; } = int.MaxValue;
4343
#endregion
4444

4545
#region Settings for PrettyPriter clients

rd-net/RdFramework/Util/SingleLinePrettyPrinter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class SingleLinePrettyPrinter : PrettyPrinter
66
{
77
public SingleLinePrettyPrinter()
88
{
9-
BufferCapacity = 1000;
9+
BufferCapacity = InfiniteCapacity;
1010
}
1111
public override string ToString()
1212
{

0 commit comments

Comments
 (0)