Skip to content

Commit d769bb8

Browse files
committed
Fix newline doubling in Python env build messages
1 parent ecfc8ac commit d769bb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scijava/plugins/scripting/python/RebuildEnvironment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ private void report(String s, Consumer<String> reporter) {
175175
System.err.println();
176176
progressPrinted = 0;
177177
}
178+
while (s.endsWith("\n") || s.endsWith("\r")) {
179+
s = s.substring(0, s.length() - 1);
180+
}
178181
reporter.accept(s);
179182
}
180183
}

0 commit comments

Comments
 (0)