| author | |
| committer | |
| log | b0e905a30dc99928c6686bf2b1401bebc0b0bdc0 |
| tree | e781b7a45c61b6438ee4f504f10bcf447085d2ea |
| parent | 1943c2dc687ecb2dcc818ea5c1e8edb9544849fe |
When the line has trailing whitespace we already print it with a
carriage return symbol at the end, don't print it one more time.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/testing.zig+1-1| ... | ... | @@ -439,7 +439,7 @@ fn printWithVisibleNewlines(source: []const u8) void { |
| 439 | 439 | |
| 440 | 440 | fn printLine(line: []const u8) void { |
| 441 | 441 | if (line.len != 0) switch (line[line.len - 1]) { |
| 442 | ' ', '\t' => print("{s}⏎\n", .{line}), // Carriage return symbol, | |
| 442 | ' ', '\t' => return print("{s}⏎\n", .{line}), // Carriage return symbol, | |
| 443 | 443 | else => {}, |
| 444 | 444 | }; |
| 445 | 445 | print("{s}\n", .{line}); |