Skip to content

Commit 10748c7

Browse files
timmaffetthaarts
authored andcommitted
fixed stacktrace line printing to reset color at EOL and prevent 'color bleed' to next line.
Perhaps this was by design(?) but I found it distracting.
1 parent cf216e0 commit 10748c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/printers/pretty_printer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class PrettyPrinter extends LogPrinter {
270270

271271
if (stacktrace != null) {
272272
for (var line in stacktrace.split('\n')) {
273-
buffer.add('$color$verticalLine $line');
273+
buffer.add(color('$verticalLine $line'));
274274
}
275275
buffer.add(color(_middleBorder));
276276
}

0 commit comments

Comments
 (0)