mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-05 07:08:39 +00:00
Fix superfluous newline in html formatting
Every page is formatted in a div, and when the div closes it creates a newline in the html rendering. In order to fix this a newline is now removed whenever the div is closed (if there are any newlines waiting to be rendered).
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user