mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
CSS fixes (#15806)
This commit is contained in:
@@ -47,7 +47,7 @@ pub const DeclarationBlock = struct {
|
||||
var arraylist = ArrayList(u8){};
|
||||
const w = arraylist.writer(bun.default_allocator);
|
||||
defer arraylist.deinit(bun.default_allocator);
|
||||
var printer = css.Printer(@TypeOf(w)).new(bun.default_allocator, std.ArrayList(u8).init(bun.default_allocator), w, .{}, null);
|
||||
var printer = css.Printer(@TypeOf(w)).new(bun.default_allocator, std.ArrayList(u8).init(bun.default_allocator), w, css.PrinterOptions.default(), null);
|
||||
defer printer.deinit();
|
||||
this.self.toCss(@TypeOf(w), &printer) catch |e| return try writer.print("<error writing declaration block: {s}>\n", .{@errorName(e)});
|
||||
try writer.writeAll(arraylist.items);
|
||||
|
||||
Reference in New Issue
Block a user