From 9fc0c12bf991c9c1fc9068630652d981e52b3317 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 28 Nov 2024 12:42:18 +0100 Subject: [PATCH] clean up the dump command's output --- .../prettypipes/network/PipeNetwork.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/de/ellpeck/prettypipes/network/PipeNetwork.java b/src/main/java/de/ellpeck/prettypipes/network/PipeNetwork.java index 9c84a4a..b6f3371 100644 --- a/src/main/java/de/ellpeck/prettypipes/network/PipeNetwork.java +++ b/src/main/java/de/ellpeck/prettypipes/network/PipeNetwork.java @@ -104,13 +104,12 @@ public class PipeNetwork extends SavedData implements GraphListener collection) { + return collection.stream().map(c -> "\t" + c.toString()).collect(Collectors.joining("\n")); + } + }