authorgravatar for xq@random-projects.netFelix "xq" Queißner <xq@random-projects.net> 2020-09-03 17:48:17+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-09-03 18:07:30-04:00
log88724b2a89157ecc3a8eea03aa0f8a6b66829915
tree13e2a2c87ef01627388bcec7bdbb8c51199bcf8b
parent10344591704b9d7317eeaca44681eabd769c4486

Introduces a space after the ellipsis for test and progress.


2 files changed, 4 insertions(+), 4 deletions(-)

lib/std/progress.zig+3-3
......@@ -197,7 +197,7 @@ pub const Progress = struct {
197197 var maybe_node: ?*Node = &self.root;
198198 while (maybe_node) |node| {
199199 if (need_ellipse) {
200 self.bufWrite(&end, "...", .{});
200 self.bufWrite(&end, "... ", .{});
201201 }
202202 need_ellipse = false;
203203 if (node.name.len != 0 or node.estimated_total_items != null) {
......@@ -218,7 +218,7 @@ pub const Progress = struct {
218218 maybe_node = node.recently_updated_child;
219219 }
220220 if (need_ellipse) {
221 self.bufWrite(&end, "...", .{});
221 self.bufWrite(&end, "... ", .{});
222222 }
223223 }
224224
......@@ -253,7 +253,7 @@ pub const Progress = struct {
253253 const bytes_needed_for_esc_codes_at_end = if (std.builtin.os.tag == .windows) 0 else 11;
254254 const max_end = self.output_buffer.len - bytes_needed_for_esc_codes_at_end;
255255 if (end.* > max_end) {
256 const suffix = "...";
256 const suffix = "... ";
257257 self.columns_written = self.columns_written - (end.* - max_end) + suffix.len;
258258 std.mem.copy(u8, self.output_buffer[max_end..], suffix);
259259 end.* = max_end + suffix.len;
lib/std/special/test_runner.zig+1-1
......@@ -40,7 +40,7 @@ pub fn main() anyerror!void {
4040 test_node.activate();
4141 progress.refresh();
4242 if (progress.terminal == null) {
43 std.debug.print("{}/{} {}...", .{ i + 1, test_fn_list.len, test_fn.name });
43 std.debug.print("{}/{} {}... ", .{ i + 1, test_fn_list.len, test_fn.name });
4444 }
4545 const result = if (test_fn.async_frame_size) |size| switch (io_mode) {
4646 .evented => blk: {