add missing trailing data at end of file

This commit is contained in:
CJ van den Berg 2024-02-20 19:02:30 +01:00
parent 53b6895b02
commit 27ded21b75

View file

@ -103,6 +103,7 @@ fn render_file(a: std.mem.Allocator, writer: anytype, content: []const u8, file_
}; };
var ctx: Ctx = .{ .writer = writer, .content = content, .theme = theme }; var ctx: Ctx = .{ .writer = writer, .content = content, .theme = theme };
try parser.render(&ctx, Ctx.cb); try parser.render(&ctx, Ctx.cb);
try ctx.writer.writeAll(content[ctx.last_pos..]);
} }
fn style_cache_lookup(theme: *const Theme, scope: []const u8, id: u32) ?Theme.Token { fn style_cache_lookup(theme: *const Theme, scope: []const u8, id: u32) ?Theme.Token {