diff --git a/src/terminal/formatter.zig b/src/terminal/formatter.zig index f8cf61e64..f76b865c9 100644 --- a/src/terminal/formatter.zig +++ b/src/terminal/formatter.zig @@ -1354,6 +1354,9 @@ pub const PageFormatter = struct { closing.len, ); } + // Closing the div creates a newline in the output + // so make sure to create one less newline + if (blank_rows >= 1) blank_rows -= 1; } return .{ .rows = blank_rows, .cells = blank_cells };